Shell:
echo -n "MyString" |md5sum/sha1sum |awk '{print $1}'
Mac OS:
md5 -s "MyString"echo -n "MyString" |md5echo -n "MyString" |shasum |awk '{print $1}'
Python:
import hashlibmd5string = hashlib.md5() # sha1string = hashlib.sha1()md5string.update("MyString")print md5string.hexdigest()
PHP: