-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Hello.
I want to encrypt a simple text (not a byte string) in AES256 CBC.
Is it possible?
In a script I use these instruction
cipher = Cipher(algorithm=AES256(cryptoKey), mode=CBC(iv))
encText = cipher.encryptor().update(b"Ciao")
But if I cange the parameter to the update method in a simple text ("Ciao", without sign "b") I get an error from python
TypeError: from_buffer() cannot return the address of a unicode object
What can I do to encrypt a simple text?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels