Guest User

Untitled

a guest
Jan 25th, 2021
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "main.py", line 46, in <module>
  3. encrypted = encrypt(str(data), str(password))
  4. File "main.py", line 14, in encrypt
  5. return base64.b64encode(iv + cipher.encrypt(raw))
  6. File "/opt/virtualenvs/python3/lib/python3.8/site-packages/Crypto/Cipher/_mode_cbc.py", line 178, in encrypt
  7. c_uint8_ptr(plaintext),
  8. File "/opt/virtualenvs/python3/lib/python3.8/site-packages/Crypto/Util/_raw_api.py", line 144, in c_uint8_ptr
  9. raise TypeError("Object type %s cannot be passed to C code" % type(data))
  10. TypeError: Object type <class 'str'> cannot be passed to C code
Add Comment
Please, Sign In to add comment