@fruitsjs/crypto
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

@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/crypto

or using yarn:

yarn add @fruitsjs/crypto

Example

import {encryptAES, decryptAES, hashSHA256} from '@fruitsjs/crypto'

const encrypted = encryptAES('test', 'key')
const decrypted = decryptAES(encrypted, 'key')
console.log(hashSHA256('test'))
console.log(decrypted)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.350latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.350
1.1.22
1.1.115
1.1.00
1.0.80
1.0.70
1.0.60
1.0.50
1.0.30
1.0.20

Package Sidebar

Install

npm i @fruitsjs/crypto

Weekly Downloads

67

Version

1.1.3

License

Apache-2.0

Unpacked Size

1.71 MB

Total Files

115

Last publish

Collaborators

  • fruits-eco-blockchain