0.0.2 • Published 1 year ago

@salamtam/ncrypt-js v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

1 year ago

0.0.1

1 year ago