I am porting a php script to node, and I don't know much about encryption.
The php script uses this function:
hash_hmac('sha512', text, key);
So, I need to implement a function in Node js for returning a keyed hash using the hmac method (SHA512).
From what I can see, node has this functionality built in via the crypto module (http://nodejs.org/docs/latest/api/crypto.html#crypto_crypto) -- But I unclear how to reproduce this function.
Any help would be appreciated.
Thanks,