How to calculate a message digest on the command line
Calculating a message digest with OpenSSL on the command line is easy. You need to use the openssl dgst
subcommand of the openssl
tool. The documentation for this subcommand is available on the openssl-dgst
man page:
$ man openssl-dgst
Let’s generate a sample file for further message digest calculation:
$ seq 20000 >somefile.txt
To check which message digest algorithms are supported in your version of OpenSSL, you can use the -list
switch:
$ openssl dgst –list Supported digests: -blake2b512 -blake2s256 -md4 -md5 -md5-sha1 -ripemd -ripemd160&...