xref: /PHP-5.3/ext/hash/tests/md5.phpt (revision 950de078)
1--TEST--
2md5 algorithm
3--SKIPIF--
4<?php if(!extension_loaded("hash")) print "skip"; ?>
5--FILE--
6<?php
7echo hash('md5', '') . "\n";
8echo hash('md5', 'a') . "\n";
9echo hash('md5', '012345678901234567890123456789012345678901234567890123456789') . "\n";
10echo hash('md5', str_repeat('a', 1000000)) . "\n";
11--EXPECT--
12d41d8cd98f00b204e9800998ecf8427e
130cc175b9c0f1b6a831c399e269772661
141ced811af47ead374872fcca9d73dd71
157707d6ae4e027c70eea2a935c2296f21
16
17