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

Added base64 inferer #15

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

Conversation

sascha10000
Copy link

I have added a Base64 inferer in the formats folder. A given string is simply checked against a regex. It accepts all base64 allowed signs and includes the trailing =-sign as padding.

Important:
How I see it every alphanumeric string could basically be base64 if the length is correct. This would lead to the problem that nearly every string could possibly be infered as base64 eventhough it is a normal string.
A solution would be to exclude this inferer generally and to let any library user explicitly include it in the list of used inferers if needed.

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.

1 participant