[PHP]ハッシュアルゴリズムとハッシュ値の例

PHP 7.4.32のhash関数で生成できるハッシュ値の例をアルゴリズムごとにまとめた。hash関数で使用可能なアルゴリズムの一覧はhash_algos()で取得できる。

文字列”Hello World”をハッシュ化した例

hash("アルゴリズム", "Hello World");
アルゴリズムハッシュ値
md2 27454d000b8f9aaa97da6de8b394d986
md4 77a781b995cf1cfaf39d9e2f5910c2cf
md5 b10a8db164e0754105b7a99be72e3fe5
sha1  0a4d55a8d778e5022fab701977c5d840bbc486d0
sha224c4890faffdb0105d991a461e668e276685401b02eab1ef4372795047
sha256a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e
sha38499514329186b2f6ae4a1329e7ee6c610a729636335174ac6b740f9028396fcc803d0e93863a7c3d90f86beee782f4f3f
sha512/224feca41095c80a571ae782f96bcef9ab81bdf0182509a6844f32c4c17
sha512/256ff20018851481c25bfc2e5d0c1e1fa57dac2a237a1a96192f99a10da47aa5442
sha5122c74fd17edafd80e8447b0d46741ee243b7eb74dd2149a0ab1b9246fb30382f27e853d8585719e0e67cbda0daa8f51671064615d645ae27acb15bfb1447f459b
sha3-2248e800079a0b311788bf29353f400eff969b650a3597c91efd9aa5b38
sha3-256e167f68d6563d75bb25f3aa49c29ef612d41352dc00606de7cbd630bb2665f51
sha3-384a78ec2851e991638ce505d4a44efa606dd4056d3ab274ec6fdbac00cde16478263ef7213bad5a7db7044f58d637afdeb
sha3-5123d58a719c6866b0214f96b0a67b37e51a91e233ce0be126a08f35fdf4c043c6126f40139bfbc338d44eb2a03de9f7bb8eff0ac260b3629811e389a5fbee8a894
ripemd1282d02b563447f954eafdc4824a190ddcc
ripemd160a830d7beb04eb7549ce990fb7dc962e499a27230
ripemd25632b7b7d2408f9389d77cc00aff3c1529504508e86cdbc78a95c469fc68f80543
ripemd32066aa514f60d7b083b539420b08bde3569a8f553f60269ea41b22b06aacca57cd6aa114f315d65ac3
whirlpoolb77b284bffc952efee36a94397a0ce11e8624668e33b7020a80eb2fb21096f0a08518c50d023de12b010c2e30b93b5837dc471d899608d786fe9a6b60112ea4a
tiger128,32bab23b832ed1cc054498b8e5a9f2924
tiger160,32bab23b832ed1cc054498b8e5a9f2924d4042f35
tiger192,32bab23b832ed1cc054498b8e5a9f2924d4042f35a22aaa55
tiger128,448cf21415aec6ec91b9f33b94969eeaa
tiger160,448cf21415aec6ec91b9f33b94969eeaa8843da5e
tiger192,448cf21415aec6ec91b9f33b94969eeaa8843da5e5e0cf209
snefruc26c908420335de5686b4451aeb15a802dc2fec07362113868742f430227be8c
snefru256c26c908420335de5686b4451aeb15a802dc2fec07362113868742f430227be8c
gost13dd17c77aef6c176d38392cdf0e9e121aa449e1ca468f58eb605959a5714b2f
gost-crypto75ed15d84df84291c67fe07bf234ac69e92a9c2a378ee62f342af739e829eba9
adler32180b041d
crc32da895c06
crc32b4a17b156
crc32c691daa2f
fnv1321282a4ef
fnv1a32b3902527
fnv16491f4e6ccce8b35af
fnv1a643d58dee72d4e0c27
joaat00ba5a14
haval128,38feba2a8c258701da0f2c11af4ec4ded
haval160,3cb52a804895af12a865a2cfb9acd7d0f6fa4a2c1
haval192,374d828ba210601ead3f957e537523db5ec6f9acb8762baca
haval224,395e02157126ace26414619be46f20bc9ff9c710431c523e1c246db9e
haval256,31ab42b4cb9dfded6117b917b2e251a25d222b8382a2ab3ee571a5ed07c1c6c84
haval128,4af25a71b4fa6dbf5d079294c8a731d44
haval160,4ed451016b10887d817dc9485699b8503214a7f39
haval192,4f12a246a073cd34d28f1ee1f29f90ab2141a779f9f0e87d5
haval224,46c2596e77d2c9434a9927d1f9930a55f9634803e936e769256faefa6
haval256,48ea892f076089382d2dcbd6ce7bb17278d4af51c3c88a8167dcf869cce613ea1
haval128,5d262a9fa3edcc0f71ec0e663bbe6a95b
haval160,5168ad511d3849752c9cd1d2775a5770a82036e2f
haval192,53a86741b8f1b775b245bc18ef01d0570f3fa5b7a915c03b1
haval224,599dbd3092cbdc2f860c7b40118e52031d8f6d35118670e9e95e5f7f3
haval256,5d3a6aa2aa73fc8cdfa02d8552e463391cc94e10cd8ef98dd8c54bad2c9b185f3