Skip to content

Base64 Encoding comment conflicts with code/output #5

Open

Description

@dhellmann

On page 671 ("12.5.1 Base 64 Encoding"), the comment says "There will never be more than 2 padding bytes". However the code says "padding = 3 - (num_initial % 3)" which I suspect should read "padding = 2 - (num_initial % 3)". This is confirmed in the output below where it reads "Expect 3 padding bytes".

Activity

  1. dhellmann commented on Jun 27, 2020

    @dhellmann
    OwnerAuthor
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