md5 and sha1 hashing in Solaris


How do you calculate md5 hash ? md5sum of course, I thought ,coming from the Linux world and was wrong. In Solaris , again, all that comes from the open source projects is add-at-your-own-risk paradigm. Instead, the native crypto provider supplies hash calculations with the digest command:

# digest -l
sha1
md5
sha256
sha384
sha512

Solaris-star# digest -v -a md5 sntp.py

md5 (sntp.py) = 0e306d35ef7da1a47c51590fe70b3144