Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

encrypt data using SHA256 algorithm in JavaScript

import sjcl from 'sjcl'

const myString = 'Hello'
const myBitArray = sjcl.hash.sha256.hash(myString)
const myHash = sjcl.codec.hex.fromBits(myBitArray)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #encrypt #data #algorithm #JavaScript
ADD COMMENT
Topic
Name
6+1 =