Skip to content
New issue

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

Does not correctly handle base32 that is not a multiple of 8 in length #4

Open
tommilligan opened this issue Feb 5, 2021 · 0 comments

Comments

@tommilligan
Copy link

Found while investigating a bug in speakeasy. It's easy to demonstrate that values of length, 8, 16, 24 etc. roundtrip correctly, but other lengths do not:

> b.encode(b.decode("ABCDEFGH"))
'ABCDEFGH'
> b.encode(b.decode("ABCDEFG"))
'ABCDEFGA'
> b.encode(b.decode("ABCDEFG="))
'ABCDEFGA'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant