SHA encode CLI From http://albertech.blogspot.fr/2011/08/generate-sha1-hash-from-command-line-in_29.html
Password encoding with perl
# The command chain and result:
echo -n password | shasum -a 1 | awk '{print $1}'
5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8
# The command chain for uppercase:
echo -n password | shasum -a 1 | awk '{print toupper($1)}'
5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8
# Perl
$(perl -e 'print crypt($ARGV[0], "password")' $password)