Skip to content

Conversation

@william-silversmith
Copy link
Contributor

@william-silversmith william-silversmith commented Aug 12, 2020

I didn't previously understand that the "==" at the end of the hash
isn't merely a delimiter, but a padding character for base64 encoding.
It's not strictly necessary to have it, but you have to add it back in
to perform a base64 decode. Base64 encoded strings are padded out to
a multiple of four characters.

https://en.wikipedia.org/wiki/Base64#Output_padding

I didn't previously understand that the "==" at the end of the hash
isn't merely a delimiter, but a padding character for base64 encoding.
It's not strictly necessary to have it, but you have to add it back in
to perform a base64 decode. Base64 encoded strings are padded out to
a multiple of four characters.
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 12, 2020
@william-silversmith
Copy link
Contributor Author

Looks like #238 and #237 are related.

@tseaver
Copy link
Contributor

tseaver commented Aug 13, 2020

Thanks for the fix! Closing because #238 is already reviewed, and adds a system test.

@tseaver tseaver closed this Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants