utils: hex-encoded time must be uppercased

This commit is contained in:
Benjamin Dauvergne 2014-03-14 14:26:18 +01:00
parent e3e1fea51b
commit 4696f9da37
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import base64
def to_hex(l):
h = hex(long(l))[2:-1]
h = '0' * (8 - len(h)) + h
return h
return h.upper()
def decode_secret(secret):
if secret.startswith('b64:'):