xref: /PHP-5.3/ext/hash/tests/md2.phpt (revision 2eb308ff)
1--TEST--
2md2 algorithm
3--SKIPIF--
4<?php if(!extension_loaded("hash")) print "skip"; ?>
5--FILE--
6<?php
7echo hash('md2', '') . "\n";
8echo hash('md2', 'a') . "\n";
9echo hash('md2', 'abc') . "\n";
10echo hash('md2', 'message digest') . "\n";
11echo hash('md2', 'abcdefghijklmnopqrstuvwxyz') . "\n";
12echo hash('md2', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n";
13echo hash('md2', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
14--EXPECT--
158350e5a3e24c153df2275c9f80692773
1632ec01ec4a6dac72c0ab96fb34c0b5d1
17da853b0d3f88d99b30283a69e6ded6bb
18ab4f496bfb2a530b219ff33031fe06b0
194e8ddff3650292ab5a4108c3aa47940b
20da33def2a42df13975352846c30338cd
21d5976f79d83d3a0dc9806c3c66f3efd8
22