We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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")
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.
The text was updated successfully, but these errors were encountered:
This is not an issue about the fernet specification.
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: