lena-cipher
v1.1.0
Published
A cryptography package that allows for encryption and decryption of messages using a customized key.
Downloads
4
Readme
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.