You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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('[email protected]', '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
The text was updated successfully, but these errors were encountered:
That's pretty odd. Can you try printing the value of the key, and if that's not helpful, then also the values in RSA.py:145? Then we can compare them against what we see on a linux machine.
For some reason, the
android_key_7_3_29
global variable has a negative exponent on my Windows machine.raises:
System info:
The text was updated successfully, but these errors were encountered: