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