excryptor

1.0.3 • Public • Published

Excryptor is a Cryptography Library for ExpressJS

SALT Initialization Vector Auth Tag Payload
Used to derive key AES GCM XOR Init Data Integrity Encrypted Data
64 Bytes, random 16 Bytes, random 16 Bytes (N-96) Bytes

Cipher: AES-256-GCM

Installation:

npm i excryptor -S

var  excryptor  =  require('excryptor');
app.use(excryptor(SECRET_KEY));

Usage:

var encryptStr = excryptor.encrypt('MY_STR'); // Encrypted String ->OAJH1n...
var decryptStr = excryptor.decrypt(encryptStr); // Decrypted String -> MY_STR

Package Sidebar

Install

npm i excryptor

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

4.66 kB

Total Files

4

Last publish

Collaborators

  • emreyartas