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

Fix allow hex input formatting #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

makinako
Copy link

Thanks for this simple and excellent tool! I often use it for manually checking cryptographic test vectors in algorithm development and often when dealing with complicated hex input structure, I break it up to make it more human readable.
This PR just allows any kind of whitespace and the most common hex delimeters to be used in the input without an error or modification to the output calculation.

The following formatted inputs (and any combination of formatting characters) will all produce the same output:

  • 112233
  • 11 22 33 (Space)
  • 11 22 33 (Tabs)
  • 11.22.33 (Period)
  • 11:22:33 (Colon)
  • 11\22\33 (Backslash)
  • 11/22/33 (Forwardslash)
  • 11-22-33 (Hyphen)
  • 11_22_33 (Underscore)

and CR, LF or CRLF:

11
22
33

Thanks again,
Kim

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