Search
 
SCRIPT & CODE EXAMPLE
 

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);
Comment

PREVIOUS NEXT
Code Example
Javascript :: create react native 
Javascript :: what is computed in mobx 
Javascript :: jquery on wheel event 
Javascript :: add text to string javascript 
Javascript :: error:03000086:digital envelope routines 
Javascript :: $(document).ready(function() alert 
Javascript :: how to hide title bar react-navigation 
Javascript :: js copy to clipboard 
Javascript :: array without duplicates js 
Javascript :: jquery change tabs 
Javascript :: mongodb group by several fields 
Javascript :: Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html" 
Javascript :: ngstyle background url angular 
Javascript :: javascript decode a sting in base64 
Javascript :: javascript json append array 
Javascript :: javascript get current date format dd mm yyyy hh mm ss 
Javascript :: remove backslash from string 
Javascript :: javascript urlsearchparams to string 
Javascript :: angular download image base64 
Javascript :: npx create-express-api 
Javascript :: isotope cdn 
Javascript :: how to get on click id in event 
Javascript :: time js code 
Javascript :: supertest multipart/form-data 
Javascript :: how to get element by id in node js 
Javascript :: javascript template literals 
Javascript :: ajax open new tab with post 
Javascript :: jquery mobile or desktop 
Javascript :: if else dart 
Javascript :: convert string to unicode javascript 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =