Recently i found myself having to generate a md5 hash to specific lines in a file… after googling a while (being addicted to automation more than repeating myself) i came with this simple solution in perl:
perl -M'Digest::MD5 qw(md5_hex)' -e 'print md5_hex("`date +%d%m%y`")'