xref: /PHP-7.1/ext/standard/tests/strings/md5.phpt (revision d95c41ed)
1--TEST--
2md5() with ASCII output
3--FILE--
4<?php
5echo md5("")."\n";
6echo md5("a")."\n";
7echo md5("abc")."\n";
8echo md5("message digest")."\n";
9echo md5("abcdefghijklmnopqrstuvwxyz")."\n";
10echo md5("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")."\n";
11echo md5("12345678901234567890123456789012345678901234567890123456789012345678901234567890")."\n";
12?>
13--EXPECT--
14d41d8cd98f00b204e9800998ecf8427e
150cc175b9c0f1b6a831c399e269772661
16900150983cd24fb0d6963f7d28e17f72
17f96b697d7cb7938d525a2f31aaf161d0
18c3fcd3d76192e4007dfb496cca67e13b
19d174ab98d277d9f5a5611c2c9f419d9f
2057edf4a22be3c955ac49da2e2107b67a
21