~kodanda/backintime/incorp-bit-search

« back to all changes in this revision

Viewing changes to common/askpass.py

  • Committer: Germar
  • Date: 2015-03-18 17:51:16 UTC
  • Revision ID: germar-20150318175116-ode7jsqn20077aa5
remove base64 encoding for passwords as it doesn't add any security but broke the password process

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
import os
19
19
import sys
20
 
import base64
21
20
try:
22
21
    import gtk
23
22
except:
47
46
 
48
47
    #temp mode
49
48
    fifo = password_ipc.FIFO(temp_file)
50
 
    pw_base64 = fifo.read(5)
51
 
    if pw_base64:
52
 
        print(base64.decodebytes(pw_base64.encode()).decode())
 
49
    pw = fifo.read(5)
 
50
    if pw:
 
51
        print(pw)