Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when login #2

Open
Derpolino opened this issue Jun 18, 2016 · 2 comments
Open

Error when login #2

Derpolino opened this issue Jun 18, 2016 · 2 comments

Comments

@Derpolino
Copy link

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
Copy link
Owner

send email

@shaunm
Copy link

shaunm commented Jul 9, 2016

I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants