Skip to content

Instantly share code, notes, and snippets.

@stefhen
Last active January 3, 2018 16:22
Show Gist options
  • Save stefhen/5ae348d5095c7ea9f02ebd3d42ecd192 to your computer and use it in GitHub Desktop.
Save stefhen/5ae348d5095c7ea9f02ebd3d42ecd192 to your computer and use it in GitHub Desktop.
Convert md5 output to 128-bit md5
echo -n "hello world" | md5sum
5eb63bbbe01eeed093cb22bb8f5acdc3
echo -n "hello world" | openssl md5 -binary | base64
XrY7u+Ae7tCTyyK7j1rNww==
(echo 0:; echo 5eb63bbbe01eeed093cb22bb8f5acdc3) | xxd -r | base64
XrY7u+Ae7tCTyyK7j1rNww==
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment