#948 Fix passphrase encoding for some passphrases (bertf)
This commit is contained in:
parent
79db010653
commit
09a775e13a
1
NEWS
1
NEWS
@ -1,3 +1,4 @@
|
||||
* #948 Fix passphrase encoding for some passphrases. (bertf)
|
||||
* #948 Accept ascii passphrases for WEP networks. '$:1a2b3c4d' for hex keys,
|
||||
's:my passphrase' for 5 or 13 characters ascii passphrases, or just the plain
|
||||
key for ascii passphrases of any other length. (tomeu)
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user