@salamtam/ncrypt-js
v0.0.2
Published
simple encryption in NodeJS
Downloads
46
Readme
ncrypt-js
Simple encryption in NodeJS.
Install
Install with npm:
$ npm install --save @salamtam/ncrypt-js
Usage
const ncrypt = require('ncrypt-js');
const key = 'unlocking secrets let find power';
const raw = 'this is plain text';
const encryptedText = ncrypt.EncryptAES(raw, Buffer.from(key));
const decryptedText = ncrypt.DecryptAES(encryptedText, Buffer.from(key));
console.log('raw:', raw);
console.log('encrypted:', encryptedText);
console.log('decrypted:', decryptedText);