Skip to content

Instantly share code, notes, and snippets.

View gpotter2's full-sized avatar

gpotter2

View GitHub Profile
@gpotter2
gpotter2 / encrypter.js
Last active March 6, 2021 18:38
Laravel 4 encrypt and decrypt using NodeJS
/*
* 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');