-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
add support for Base32 decoding #10
Comments
Base64 doesn't always end with a |
You can look here for reference. Base64
Base32
So, essentially, what you could look for is if the string includes any of the numbers 0, 1, 8, 9 and that should be enough to rule out the string being base32-encoded. |
try: and except may work better to implement as there probably are cases where it would detect as 64 but is actually a 32? |
@3lixy We will decode for both ;) |
it's quite common, and can be identified with 1 trailing
=
, instead of 2=
s used in its Base64 counterpart.in Python,
base64.b32decode
can be used to perform the decoding.The text was updated successfully, but these errors were encountered: