diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-09-26 13:46:45 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-09-26 13:59:46 (GMT) |
commit | 09a775e13a5d3b89c365ade6ef35a5a791c0ab7d (patch) | |
tree | 838c34ccd3f8b782c66407af62e55660aacc1ad4 /shell | |
parent | 79db01065349d796aeb566c1e057186de7e0b75e (diff) |
#948 Fix passphrase encoding for some passphrases (bertf)
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hardware/keydialog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hardware/keydialog.py b/shell/hardware/keydialog.py index 6c66006..6b5976c 100644 --- a/shell/hardware/keydialog.py +++ b/shell/hardware/keydialog.py @@ -67,7 +67,7 @@ def string_is_ascii(string): def string_to_hex(passphrase): key = '' for c in passphrase: - key += hex(ord(c))[2:] + key += '%02x' % ord(c) return key def hash_passphrase(passphrase): |