-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
binascii.a2b_base64
ignores padding inside a string
#94703
Comments
When running the code from main, the behaviour is as you expect it to be :)
The following code handles it-
Looking at 3.11, i see the code is there too - link |
Does it reject this input?
? |
Yup :)
|
Is it because python 3.10.5 uses REF 4648. https://docs.python.org/3/library/base64.html |
Hi @DemiMarie,
For further information, please read: |
Bug report
The following code should raise
binascii.Error
but does not:It appears (from looking at the source code) that this is also the case in 3.11, even in strict mode.
Your environment
The text was updated successfully, but these errors were encountered: