crypto-react
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

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

Package Sidebar

Install

npm i crypto-react

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

22.5 kB

Total Files

21

Last publish

Collaborators

  • drazail