0.2.1 • Published 1 year ago

crypto-react v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

crypto-react

JavaScript implementations of standard and secure cryptographic algorithms for react

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