This commit is contained in:
ThomasV 2011-11-09 17:24:07 +01:00
parent f51e9a370a
commit b1a1736116
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ def ASecretToSecret(key):
def int_to_hex(i, length=1):
s = hex(i)[2:]
s = hex(i)[2:].rstrip('L')
s = "0"*(2*length - len(s)) + s
return s.decode('hex')[::-1].encode('hex')