crypto-react
v0.2.1
Published
JavaScript library of Cryptography Standard for react.
Downloads
27
Maintainers
Readme
crypto-react
JavaScript implementations of standard and secure cryptographic algorithms for react
functions
hooks
namespaces
interfaces
Getting started
$ npm install crypto-react --save
Usage
hash
import { hash, HashAlgorithms, Encoders } from 'crypto-react';
hash('Message', HashAlgorithms.SHA256, Encoders.hex).then((hashedMessage)=>console.log(hashedMessage));
hmac
import { hmac, HmacAlgorithms, Encoders } from 'crypto-react';
hmac(
'Message',
'SecretKey',
HmacAlgorithms.HmacSHA256,
Encoders.hex,
).then((hmacMessage)=>console.log(hmacMessage));;