Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

crypto-react

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypto-react

JavaScript library of Cryptography Standard for react.

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
22
450%
Maintainers
1
Weekly downloads
 
Created
Source

crypto-react

JavaScript implementations of standard and secure cryptographic algorithms for react

  • instalation

  • simple usecase

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

Keywords

react

FAQs

Package last updated on 02 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts