Tag: md5

  • Simple Bash function to use md5sum for string input

    Simple Bash function to use md5sum for string input

    Using macOS for most of my work, if I want to retrieve the hash of a string, macOS provides an easy md5 function, located under /sbin/md5 and callable in any terminal:

    $ md5 -s 'Hey md5!'

    Linux does things a little differently, but with a single line in Bash, you can keep the easy macOS syntax.

    (more…)