-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
For some reason, the android_key_7_3_29 global variable has a negative exponent on my Windows machine.
from gpsoauth import google, android_key_7_3_29
google.signature('test@gmail.com', 'asdf', android_key_7_3_29)
raises:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "<PYTHONLIB>\site-packages\gpsoauth\google.py", line 50, in signature
encrypted_login = cipher.encrypt((email + u'\x00' + password).encode('utf-8'))
File "<PYTHONLIB>\site-packages\Cryptodome\Cipher\PKCS1_OAEP.py", line 138, in encrypt
m_int = self._key._encrypt(em_int)
File "<PYTHONLIB>\site-packages\Cryptodome\PublicKey\RSA.py", line 145, in _encrypt
return int(pow(Integer(plaintext), self._e, self._n))
File "<PYTHONLIB>\site-packages\Cryptodome\Math\_Numbers_gmp.py", line 404, in __pow__
return result.inplace_pow(exponent, modulus)
File "<PYTHONLIB>\site-packages\Cryptodome\Math\_Numbers_gmp.py", line 395, in inplace_pow
raise ValueError("Exponent must not be negative")
ValueError: Exponent must not be negative
System info:
- gpsoauth version 0.4.1
- Python 3.6.5 [MSC v.1900 64 bit (AMD64)]
- Windows-10-10.0.16299-SP0 x64
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels