Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : hash Functions : hash_hmac

hash_hmac

Generate a keyed hash value using the HMAC method (PHP 5 >= 5.1.2, PECL hash:1.1-1.5)
string hash_hmac ( string algo, string data, string key [, bool raw_output] )

Example 869. hash_hmac() example

<?php
echo hash_hmac('ripemd160', 'The quick brown fox jumped over the lazy dog.', 'secret');
?>

The above example will output:

b8e7ae12510bdfb1812e463a7f086122cf37e4f7

Change Language


Follow Navioo On Twitter
hash_algos
hash_file
hash_final
hash_hmac_file
hash_hmac
hash_init
hash_update_file
hash_update_stream
hash_update
hash
eXTReMe Tracker