1.0.1 • Published 10 years ago

acrypto v1.0.1

Weekly downloads
54
License
Unlicense
Repository
github
Last release
10 years ago

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

10 years ago

1.0.0

10 years ago