acrypto

1.0.1 • Public • Published

acrypto npm version

Promise based version of Node.js crypto module which only includes randomBytes and pbkdf2.

Example

import acrypto from 'acrypto'
 
async function () {
  const rand = await acrypto.randomBytes(16)
  rand.length // 16
 
  const pbkdf2 = await acrypto.pbkdf2('secret', 'salt', 256, 256, 'sha256')
  pbkdf2.toString('hex') // ...
}

Readme

Keywords

none

Package Sidebar

Install

npm i acrypto

Weekly Downloads

0

Version

1.0.1

License

Unlicense

Last publish

Collaborators

  • aluxian