Speed up development with full-stack environments for every branch.

Learn More

Generate a keyed hash value using the HMAC method [PHP]

213 Runs 481 Views 79 Copies
Saved

Saved

gtsolutions 373

gtsolutions
published 4 years ago

<?php
/*
 * PHP hash - Generate a keyed hash value using the HMAC method
 */

//Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..) 
$algo = 'ripemd160';
echo hash_hmac($algo, 'The quick brown fox jumped over the lazy dog.', 'secret key');
?>
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).