Skip to content

E4 code example missing encoding #1

Description

@erikkleinnagelvoort

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions