Answers for "nodejs sha512 decrypt"

0

nodejs sha512 decrypt

// generate a hash from string
var crypto = require('crypto'),
    text = 'hello bob',
    key = 'mysecret key'

// create hahs
var hash = crypto.createHmac('sha512', key)
hash.update(text)
var value = hash.digest('hex')

// print result
console.log(value);
Posted by: Guest on August-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language