たまにしか使わないのでメモ。
以下、Ubuntuで確認。
$ cksum test.dat 474118298 31704395710 test.dat $ md5sum test.dat e7855da4476705eb1a1fb7f92d0c6ab8 test.dat $ sha1sum test.dat 4eade702552666f5ec553b0174e965edf03f8c53 test.dat
opensslコマンドでも確認できる。
$ openssl md5 test.dat MD5(test.dat)= e7855da4476705eb1a1fb7f92d0c6ab8
opensslコマンドでは以下の形式にも対応している。
-md4 to use the md4 message digest algorithm -md5 to use the md5 message digest algorithm -ripemd160 to use the ripemd160 message digest algorithm -sha to use the sha message digest algorithm -sha1 to use the sha1 message digest algorithm -sha224 to use the sha224 message digest algorithm -sha256 to use the sha256 message digest algorithm -sha384 to use the sha384 message digest algorithm -sha512 to use the sha512 message digest algorithm -whirlpool to use the whirlpool message digest algorithm
それでは!=͟͟͞͞(๑•̀=͟͟͞͞(๑•̀д•́=͟͟͞͞(๑•̀д•́๑)=͟͟͞͞(๑•̀д•́