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

Your email address will not be published. Required fields are marked *

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box