Simple encode/decode library, initially intended for database id's obfuscation
Usage
const Cryptor = require('fine-crypt');
const secret = 'top_secret_word';
const cryptor = new Cryptor(secret);
const initText = '3 Men in a Boat (To Say Nothing of the Dog),';
const encryptedText = cryptor.encrypt(initText);
const encryptedText = cryptor.encrypt(initText, secret);
const decryptedText = cryptor.decrypt(encryptedText);
const decryptedText = cryptor.decrypt(encryptedText, secret);
Install
$ npm install fine-crypt
License
ISC