MD5 and SHA1 sums in Bash, MySQL, and PHP5

Here are some ways to calculate an MD5 and SHA1 sum of a string.

In Bash

The switch -e enables the interpretation of escape sequences and \c (‘End of Text’) suppresses any further output.

In MySQL

In PHP5

 

Leave a Reply