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
I noticed that the code example in E4 (https://github.com/billbuchanan/appliedcrypto/tree/main/unit04_public_key/lab) misses encoding, which breaks the code.
The line without encoding: ciphertext = rsa.encrypt('Here is my message', bob_pub)
The line with proper encoding: ciphertext = rsa.encrypt('Here is my message'.encode('utf-8'), bob_pub)
The text was updated successfully, but these errors were encountered:
Thank you. I have committed a new version of this, with the encode() method to convert the string to a byte array.
Sorry, something went wrong.
No branches or pull requests
I noticed that the code example in E4 (https://github.com/billbuchanan/appliedcrypto/tree/main/unit04_public_key/lab) misses encoding, which breaks the code.
The line without encoding:
ciphertext = rsa.encrypt('Here is my message', bob_pub)
The line with proper encoding:
ciphertext = rsa.encrypt('Here is my message'.encode('utf-8'), bob_pub)
The text was updated successfully, but these errors were encountered: