Skip to content

Instantly share code, notes, and snippets.

@zhuzhuor
zhuzhuor / simple.py
Last active December 20, 2015 14:48 — forked from veorq/simple.py
"""
This is an EXPERIMENTAL password hash with time and memory parameters,
such that the time parameter does not affect the memory required (but
does affect the number of memory accesses).
This was quickly designed, with no real test, so it's probably a silly
design and the code may be broken. Therefore, please:
- Do not use it to hash real passwords!
- Attack it! (circumvent the time/memory requirements, find biases...)
@zhuzhuor
zhuzhuor / gist:2770237
Created May 22, 2012 16:57 — forked from timesking/gist:1472374
sogou proxy
# modified based on https://gist.github.com/2770237
from struct import unpack
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from httplib import HTTPResponse
from SocketServer import ThreadingMixIn
import socket
import time
x_sogou_auth = "9CD285F1E7ADB0BD403C22AD1D545F40/30/853edc6d49ba4e27"