diff --git a/qvm-tools/qvm-backup b/qvm-tools/qvm-backup index 313a0a7a..73137ae8 100755 --- a/qvm-tools/qvm-backup +++ b/qvm-tools/qvm-backup @@ -142,6 +142,8 @@ def main(): print >>sys.stderr, "ERROR: Password mismatch" exit(1) + passphrase = passphrase.decode(sys.stdin.encoding) + kwargs = {} if options.hmac_algorithm: kwargs['hmac_algorithm'] = options.hmac_algorithm diff --git a/qvm-tools/qvm-backup-restore b/qvm-tools/qvm-backup-restore index 1f4a81eb..0b6169f4 100755 --- a/qvm-tools/qvm-backup-restore +++ b/qvm-tools/qvm-backup-restore @@ -26,6 +26,7 @@ from qubes.backup import backup_restore_header from qubes.backup import backup_restore_prepare from qubes.backup import backup_restore_print_summary from qubes.backup import backup_restore_do +import sys from optparse import OptionParser import os @@ -109,6 +110,7 @@ def main(): exit(1) passphrase = getpass.getpass("Please enter the pass phrase that will be used to decrypt/verify the backup: ") + passphrase = passphrase.decode(sys.stdin.encoding) print >> sys.stderr, "Checking backup content..."