Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/hardware/keydialog.py
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hardware/keydialog.py')
-rw-r--r--shell/hardware/keydialog.py2
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):