utils: hex-encoded time must be uppercased
This commit is contained in:
parent
e3e1fea51b
commit
4696f9da37
|
@ -5,7 +5,7 @@ import base64
|
||||||
def to_hex(l):
|
def to_hex(l):
|
||||||
h = hex(long(l))[2:-1]
|
h = hex(long(l))[2:-1]
|
||||||
h = '0' * (8 - len(h)) + h
|
h = '0' * (8 - len(h)) + h
|
||||||
return h
|
return h.upper()
|
||||||
|
|
||||||
def decode_secret(secret):
|
def decode_secret(secret):
|
||||||
if secret.startswith('b64:'):
|
if secret.startswith('b64:'):
|
||||||
|
|
Reference in New Issue