acrypto
v1.0.1
Published
Promise based version of Node.js `crypto` module which only includes `randomBytes` and `pbkdf2`.
Downloads
4
Readme
acrypto
Promise based version of Node.js
crypto
module which only includesrandomBytes
andpbkdf2
.
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') // ...
}