Lines Matching refs:key
8 /* Prototype : string hash_hmac ( string $algo , string $data , string $key [, bool $raw_outpu…
17 $key = 'secret';
19 echo "gost: " . hash_hmac('gost', $content, $key) . "\n";
20 echo "haval128,3: " . hash_hmac('haval128,3', $content, $key) . "\n";
21 echo "md2: " . hash_hmac('md2', $content, $key) . "\n";
22 echo "md4: " . hash_hmac('md4', $content, $key) . "\n";
23 echo "md5: " . hash_hmac('md5', $content, $key) . "\n";
24 echo "ripemd128: " . hash_hmac('ripemd128', $content, $key) . "\n";
25 echo "ripemd160: " . hash_hmac('ripemd160', $content, $key) . "\n";
26 echo "ripemd256: " . hash_hmac('ripemd256', $content, $key) . "\n";
27 echo "ripemd320: " . hash_hmac('ripemd320', $content, $key) . "\n";
28 echo "sha1: " . hash_hmac('sha1', $content, $key) . "\n";
29 echo "sha256: " . hash_hmac('sha256', $content, $key) . "\n";
30 echo "sha384: " . hash_hmac('sha384', $content, $key) . "\n";
31 echo "sha512: " . hash_hmac('sha512', $content, $key) . "\n";
32 echo "snefru: " . hash_hmac('snefru', $content, $key) . "\n";
33 echo "tiger192,3: " . hash_hmac('tiger192,3', $content, $key) . "\n";
34 echo "whirlpool: " . hash_hmac('whirlpool', $content, $key) . "\n";
35 echo "md5(raw): " . bin2hex(hash_hmac('md5', $content, $key, TRUE)) . "\n";
36 echo "sha256(raw): " . bin2hex(hash_hmac('sha256', $content, $key, TRUE)) . "\n";