npm.io
1.0.1 • Published 11 years ago

acrypto

Licence
Unlicense
Version
1.0.1
Deps
1
Vulns
0
Weekly
0
Stars
1

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') // ...
}