Lines Matching refs:hash_hmac
8 /* Prototype : string hash_hmac ( string $algo , string $data , string $key [, bool $raw_outpu…
14 echo "*** Testing hash_hmac() : basic functionality ***\n";
16 $content = "This is a sample string used to test the hash_hmac function with various hashing algori…
19 echo "adler32: " . hash_hmac('adler32', $content, $key) . "\n";
20 echo "crc32: " . hash_hmac('crc32', $content, $key) . "\n";
21 echo "gost: " . hash_hmac('gost', $content, $key) . "\n";
22 echo "haval128,3: " . hash_hmac('haval128,3', $content, $key) . "\n";
23 echo "md2: " . hash_hmac('md2', $content, $key) . "\n";
24 echo "md4: " . hash_hmac('md4', $content, $key) . "\n";
25 echo "md5: " . hash_hmac('md5', $content, $key) . "\n";
26 echo "ripemd128: " . hash_hmac('ripemd128', $content, $key) . "\n";
27 echo "ripemd160: " . hash_hmac('ripemd160', $content, $key) . "\n";
28 echo "ripemd256: " . hash_hmac('ripemd256', $content, $key) . "\n";
29 echo "ripemd320: " . hash_hmac('ripemd320', $content, $key) . "\n";
30 echo "sha1: " . hash_hmac('sha1', $content, $key) . "\n";
31 echo "sha256: " . hash_hmac('sha256', $content, $key) . "\n";
32 echo "sha384: " . hash_hmac('sha384', $content, $key) . "\n";
33 echo "sha512: " . hash_hmac('sha512', $content, $key) . "\n";
34 echo "snefru: " . hash_hmac('snefru', $content, $key) . "\n";
35 echo "tiger192,3: " . hash_hmac('tiger192,3', $content, $key) . "\n";
36 echo "whirlpool: " . hash_hmac('whirlpool', $content, $key) . "\n";
37 echo "adler32(raw): " . bin2hex(hash_hmac('adler32', $content, $key, TRUE)) . "\n";
38 echo "md5(raw): " . bin2hex(hash_hmac('md5', $content, $key, TRUE)) . "\n";
39 echo "sha256(raw): " . bin2hex(hash_hmac('sha256', $content, $key, TRUE)) . "\n";
44 *** Testing hash_hmac() : basic functionality ***