結城浩
2005年2月16日
GnuPGでメッセージダイジェストを得るコマンドラインを調べる。
C:\GPG> gpg --version gpg (GnuPG) 1.4.0 Copyright (C) 2004 Free Software Foundation, Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the file COPYING for details. Home: C:\GPG Supported algorithms: Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512 Compression: Uncompressed, ZIP, ZLIB, BZIP2 C:\GPG> gpg --help | grep digest --print-md algo [files] print message digests C:\GPG> gpg --print-md MD5 README README: E6 CD 93 D5 34 E1 34 63 C9 A1 AD 4C EE D6 5F 65 C:\GPG> gpg --print-md SHA1 README README: 68FE 82F8 8A4A E927 AC56 AD1F 4BAC AF53 9F30 0C20 C:\GPG> gpg --print-md SHA256 README README: 12D2F039 9C0DB793 2AE6E7E4 52FDC1BE BE3C01BA 972AE081 332E9D69 AFC6900D C:\GPG> gpg --print-md SHA384 README README: 01758E81 7EF7B067 4889AC4A 90E40BCE 067D63C5 566581E6 532F85D4 14666F6D 35699473 09BA67F8 D6FC79E5 76D91FAA C:\GPG> gpg --print-md SHA512 README README: 0ECE715E 6C105712 2E382150 FABC2367 A2F4E29A AD1FBE14 FED06E9A 33CE380D 24AC7465 9BD9CF58 E6805A43 062FAE3B B85F7F72 018AB5ED E40504CD BC19BF05