youngesbill / snapchatAPI

Full Snapchat API
MIT License
43 stars 14 forks source link

Error when login #2

Open Derpolino opened 8 years ago

Derpolino commented 8 years ago

Traceback (most recent call last): File "H:\Desktop\Mes_codes\Python\snapchat\snapchatAPI\test.py", line 3, in acc.login() File "H:\Desktop\Mes_codes\Python\snapchat\snapchatAPI\Snapchat.py", line 249, in login r = self.request("/loq/login", data = data) File "H:\Desktop\Mes_codes\Python\snapchat\snapchatAPI\Snapchat.py", line 95, in request r_tokens = self.QueryTools.get_tokens(endpoint, auth_token=auth_token) File "H:\Desktop\Mes_codes\Python\snapchat\snapchatAPI\QueryTools.py", line 45, in get_tokens dataEncoded = self.encryption(json.dumps(dataJson)) File "H:\Desktop\Mes_codes\Python\snapchat\snapchatAPI\QueryTools.py", line 31, in encryption return b64encode(Crypto.Cipher.AES.new(self.privateKey, Crypto.Cipher.AES.MODE_CBC, "\x00" * 16).encrypt(padded.encode('utf8'))) File "C:\Python27\lib\site-packages\Crypto\Cipher\AES.py", line 95, in new return AESCipher(key, _args, _kwargs) File "C:\Python27\lib\site-packages\Crypto\Cipher\AES.py", line 59, in init blockalgo.BlockAlgo.init(self, _AES, key, _args, _kwargs) File "C:\Python27\lib\site-packages\Crypto\Cipher\blockalgo.py", line 141, in init self._cipher = factory.new(key, _args, *_kwargs) ValueError: AES key must be either 16, 24, or 32 bytes long

youngesbill commented 8 years ago

send email

shaunm commented 8 years ago

I have the same issue.