Skip to content

Instantly share code, notes, and snippets.

@alexchung
alexchung / Blockout.py
Created February 9, 2014 23:11
Blockout encryption/decryption methods ported to Python
# -*- coding: utf-8 -*-
import sys
import os
import base64
import bcrypt
from Crypto import Random
from Crypto.Cipher import AES
from Crypto.Hash import SHA256
class Blockout:
@alexchung
alexchung / Blockout.php
Created February 9, 2014 23:10
Blockout encryption/decryption methods in PHP
<?php
class Blockout {
public static function enblockout($s, $key) {
// user provided blockout encoder
return;
}
public static function deblockout($blockout, $key) {