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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty string is a valid Base64 string #493

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

apelisse
Copy link

Q A
Documentation no
Bugfix yes
BC Break 馃し
New Feature no
RFC no
QA no

Description

Empty strings are valid base64 strings. If you base64 encode an empty string, you get an empty string.
A few example:

A python example:

>>> import base64
>>> base64.b64decode("")
b''

If you don't want empty strings, you can change the minLength.

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

Successfully merging this pull request may close these issues.

None yet

1 participant