Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
Source by lollyrock.com #
 
PREVIOUS NEXT
Tagged: #nodejs #decrypt
ADD COMMENT
Topic
Name
9+6 =