aescrypt

AES Salted Encryption helper for NodeJS

Showing:

Popularity

Downloads/wk

1

GitHub Stars

1

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.5KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

AESCrypt

Build Status Coverage Status Dependency Status devDependency Status Downloads

AES Salted Encryption helper

Partially inspired by AESCrypt Ruby gem.

NPM

Installation

npm install --save aescrypt

Usage

AESCrypt.encryptWithSalt(keytext, cleardata)

AESCrypt = require "aescrypt"

keytext   = "toomanysecrets"
cleardata = "we have explosive"

{encrypted, salt} = AESCrypt.encryptWithSalt keytext, cleardata

###
encrypted = "nm6Ky1J/L7oBmiCont3hBzMwIf7cThAakcokykg="
salt      = "C/GzCUNDSjiotRNei17TfQ=="
###

AESCrypt.decryptWithSalt(keytext, salt, encrypted)

AESCrypt = require "aescrypt"

encrypted = "nm6Ky1J/L7oBmiCont3hBzMwIf7cThAakcokykg="
salt      = "C/GzCUNDSjiotRNei17TfQ=="

decrypted = AESCrypt.decryptWithSalt keytext, salt, encrypted

###
decrypted = "we have explosive"
###

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100