This commit is contained in:
Richard O'Dwyer 2019-10-16 22:26:05 +01:00
parent 7acd6bcf4f
commit e088987c1d
2 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,7 @@ import binascii
import random
import sys
### Python3 compatibility
# Python3 compatibility
if sys.version_info < (3, ):
def makebyte(x):

View file

@ -59,7 +59,8 @@ class Mega(object):
a32_to_base64(encrypt_key(master_key, password_key)),
'ts':
base64_url_encode(
a32_to_str(session_self_challenge) + a32_to_str(encrypt_key(session_self_challenge, master_key))
a32_to_str(session_self_challenge) +
a32_to_str(encrypt_key(session_self_challenge, master_key))
)
}
)