This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* A duplicate of Laravel's Crypt:: | |
* | |
* This is copy/pasted from https://gist.github.com/Agoreddah/511864e2c00da064586523b3087c30e2#file-encrypter-js | |
* but fixed to work with Laravel == 4 | |
*/ | |
// load dependencies | |
const Rijndael = require('rijndael-js'); | |
const crypto = require('crypto'); |