xref: /PHP-8.1/ext/hash/tests/md5.phpt (revision 7aacc705)
1--TEST--
2Hash: md5 algorithm
3--FILE--
4<?php
5echo hash('md5', '') . "\n";
6echo hash('md5', 'a') . "\n";
7echo hash('md5', '012345678901234567890123456789012345678901234567890123456789') . "\n";
8echo hash('md5', str_repeat('a', 1000000)) . "\n";
9?>
10--EXPECT--
11d41d8cd98f00b204e9800998ecf8427e
120cc175b9c0f1b6a831c399e269772661
131ced811af47ead374872fcca9d73dd71
147707d6ae4e027c70eea2a935c2296f21
15