Getting TypeError once i have installed pycryptodome instead of pycrypto. Looking for help on this:
File "/files0/home/kumarrd/certitude/lib/python2.7/site-packages/flask/app.py", line 1997, in __call__
return self.wsgi_app(environ, start_response)
File "/files0/home/kumarrd/certitude/lib/python2.7/site-packages/flask/app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "/files0/home/kumarrd/certitude/lib/python2.7/site-packages/flask/app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "/files0/home/kumarrd/certitude/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/files0/home/kumarrd/certitude/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/files0/home/kumarrd/certitude/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/files0/home/kumarrd/certitude/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/files0/home/kumarrd/certitude/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/files0/home/kumarrd/certitude/components/interface/web.py", line 124, in decorated
return f(*args, **kwargs)
File "/files0/home/kumarrd/certitude/components/interface/web.py", line 459, in wincredAdd
encrypted_account_password = crypto.encrypt(account_password, MASTER_KEY)
File "/files0/home/kumarrd/certitude/helpers/crypto.py", line 73, in encrypt
return base64.b64encode(iv + cipher.encrypt(__pad(m, AES.block_size)))
File "/files0/home/kumarrd/certitude/lib/python2.7/site-packages/Crypto/Cipher/_mode_cbc.py", line 160, in encrypt
expect_byte_string(plaintext)
File "/files0/home/kumarrd/certitude/lib/python2.7/site-packages/Crypto/Util/_raw_api.py", line 200, in expect_byte_string
raise TypeError("Only byte strings can be passed to C code")
TypeError: Only byte strings can be passed to C code
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.
You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
dump() shows all variables in the frame
dump(obj) dumps all that's known about the object