@fruitsjs/crypto
v1.1.3
Published
Cryptographic functions for building Fruits Eco-Blockchain apps.
Downloads
100
Maintainers
Readme
@fruitsjs/crypto
Cryptographic functions for building Fruits Eco-Blockchain apps.
Installation
FruitsJS can be used with NodeJS or Web.
Using with NodeJS and/or modern web frameworks
Install using npm:
npm install @fruitsjs/cryptoor using yarn:
yarn add @fruitsjs/cryptoExample
import {encryptAES, decryptAES, hashSHA256} from '@fruitsjs/crypto'
const encrypted = encryptAES('test', 'key')
const decrypted = decryptAES(encrypted, 'key')
console.log(hashSHA256('test'))
console.log(decrypted)