#948 Fix passphrase encoding for some passphrases (bertf)

This commit is contained in:
Tomeu Vizoso
2007-09-26 15:46:45 +02:00
parent 79db010653
commit 09a775e13a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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):