Skip to content

Instantly share code, notes, and snippets.

@direct-fuel-injection
direct-fuel-injection / redis.py
Created October 26, 2015 08:19
Cherrypy Redis Sessions on cherrys lib.
# -*- coding: utf-8 -*-
import cherrypy
import datetime
from cherrys import RedisSession
try:
import simplejson as json
except ImportError:
import json
@brettscott
brettscott / aes-256-cbc-test.js
Last active March 31, 2025 15:15
AES 256 CBC encryption between Golang and Node JS
// Node v6.9.0
//
// TEST FILE (cut down for simplicity)
// To ensure Golang encrypted string can be decrypted in NodeJS.
//
let crypto;
try {
crypto = require('crypto');