encryptor-js
v0.2.1
Published
Encryptor-js encrypt and decrypt messages with a secret.
Downloads
4
Maintainers
Readme
Install
Install the package NPM:
$ npm i encryptor-js --save
or install the package YARN:
yarn add encryptor-js
Usage
var Encryptor = require('encryptor-js');
var encryptedMessage = new Encryptor().encrypt('message', 'secret');
var decryptedMessage = new Encryptor().decrypt(encryptedMessage, 'secret');
console.log(encryptedMessage); // 8cfa1d25147d06730fb91f162fecf8d0
console.log(decryptedMessage); // message
Author
License
MIT