lena-cipher

1.1.0 • Public • Published

lena-cipher

A cryptography package that allows for encryption and decryption of messages using a customized key.

Usage

const { Cipher } = require('lena-cipher');

const cipher = new Cipher('MyCustomPrivateKey');

const message = 'Hello World!';

const encoded = await cipher.encrypt(message);
const decoded = await cipher.decrypt(encoded);

console.log(encoded);   //G8TFM7phGxppN7ty
console.log(decoded);   //Hello World!

Author

Made with ♥ by fidilen.

Readme

Keywords

none

Package Sidebar

Install

npm i lena-cipher

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

5.7 kB

Total Files

5

Last publish

Collaborators

  • fidilen