Skip to content

Instantly share code, notes, and snippets.

Lauro Moraes subversivo58

Block or report user

Report or block subversivo58

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@subversivo58
subversivo58 / .env
Created Oct 13, 2017
Simple wrapper to use "googleapis" in Node
View .env
HOST=mehost.com
APP_MAIL="Site Name" <memail@mehost.com>
GMAIL_APITOKEN={JSON API TOKEN}
GMAIL_APISECRET={JSON API SECRET}
View encript_session_to_mongodb.md
class HandlerSessionManager
{
      private $dbCollection;
      private $dbSession;
      private $dbName;
      private $expire;
      private $token;
      private $clean;
@subversivo58
subversivo58 / decrypt.js
Created Sep 4, 2016 — forked from pradipchitrakar/decrypt.js
AES Encrypt data in php and decrypt in node js.
View decrypt.js
//require cyrpto module
var crypto=require('crypto');
//key and iv should be same as the one in encrypt.php
var decipher=crypto.createDecipheriv('aes-256-cbc','12345678901234561234567890123456','1234567890123456');
//since we have already added padding while encrypting, we will set autopadding of node js to false.
decipher.setAutoPadding(false);
// copy the output of encrypt.php and paste it below
You can’t perform that action at this time.