node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

cryptun

Crypto wrapper with Mcrypt ecncryption, like php.

For example:

require_once 'cryptun.php';
$cr = new cryptun;
 
var a = cr.en('Hello World!'); // dFUYCkTqDjt568L+bPfLmw==
var b = cr.de('dFUYCkTqDjt568L+bPfLmw=='); //Hello World!
 
console.log(a);
console.log(b);