easy-encrypt

1.1.0 • Public • Published

Easy encryption on top of the native nodejs crypto library

Install

npm i easy-encrypt

AES-256-CTR

const { encrypt, decrypt } = require('easy-encrypt/aes256ctr')
const hw = encrypt('hello world', 'mys3cr3t')
console.log(decrypt(hw, 'mys3cr3t')) // 'hello world'

If you don't want to pass the password on each call:

const { create } = require('easy-encrypt/aes256ctr')
const { encrypt, decrypt } = create('mys3cr3t')
const hw = encrypt('hello world')
console.log(decrypt(hw)) // 'hello world'

To do

  • Add rollup
  • Tests
  • Buffer and Streams
  • AES-128-CTR

Readme

Keywords

none

Package Sidebar

Install

npm i easy-encrypt

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

5.9 kB

Total Files

6

Last publish

Collaborators

  • enzo