@salamtam/ncrypt-js

0.0.2 • Public • Published

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);

Readme

Keywords

Package Sidebar

Install

npm i @salamtam/ncrypt-js

Weekly Downloads

69

Version

0.0.2

License

MIT

Unpacked Size

5.81 kB

Total Files

5

Last publish

Collaborators

  • salamtam