Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "main.py", line 46, in <module>
- encrypted = encrypt(str(data), str(password))
- File "main.py", line 14, in encrypt
- return base64.b64encode(iv + cipher.encrypt(raw))
- File "/opt/virtualenvs/python3/lib/python3.8/site-packages/Crypto/Cipher/_mode_cbc.py", line 178, in encrypt
- c_uint8_ptr(plaintext),
- File "/opt/virtualenvs/python3/lib/python3.8/site-packages/Crypto/Util/_raw_api.py", line 144, in c_uint8_ptr
- raise TypeError("Object type %s cannot be passed to C code" % type(data))
- TypeError: Object type <class 'str'> cannot be passed to C code
Add Comment
Please, Sign In to add comment