-
Notifications
You must be signed in to change notification settings - Fork 35
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
Base64::decode() gives Incorrect Padding error - base64_decode() works just fine #4
Comments
Padding probably. I'll make it no-padding-tolerant when the power turns
|
Thanks! Good luck with the power! |
This string appears to deviate from the standard. https://tools.ietf.org/html/rfc4648 The minimum size of an unpadded output sequence is two characters. The last |
https://github.com/paragonie/constant_time_encoding/releases/tag/v1.0.1 should no longer encounter this error. If anyone needs strict mode, the |
|
In the following code I have one string that I test against
Base64::decode()
and againstbase64_decode()
and each one behaves differently.First, my code:
When I run that code I get the following output:
Any ideas? I was under the impression
Base64::decode()
was supposed to be a drop in replacement forbase64_decode
.The text was updated successfully, but these errors were encountered: