Cryptorjs
Simple library for encryption and decryption of string using a key
Installation
npm install cryptorjs --save
Example
Basic
var cryptorjs = require('cryptorjs');
var myCryptor = new cryptorjs('yourSecretKey');
var encoded = myCryptor.encode('myExampleString');
var decoded = myCryptor.decode('37d8e07a3dddc2971f3e53b1021f51');
With a cipher
For example using "blowfish" cipher
var cryptorjs = require('cryptorjs');
var myCryptor = new cryptorjs('yourSecretKey', 'blowfish');
var encoded = myCryptor.encode('myExampleString');
var decoded = myCryptor.decode('d21c35352099eac53a129a414530c162');
Ciphers
You can get the list with a static method
var cryptorjs = require('cryptorjs');
cryptorjs.getCiphers();
License
Cryptorjs is open-sourced software licensed under the MIT license
Author
Fabio Ricali