Skip to content

Instantly share code, notes, and snippets.

View qix's full-sized avatar

Josh Yudaken qix

View GitHub Profile
@qix
qix / password.py
Created November 16, 2012 15:52
Master password to one password per site with bcrypt algorithm
import bcrypt
def take(N, bignum):
mod = bignum % N
bignum = bignum / N
return (mod, bignum)
def choice(letters, bignum):
choice, bignum = take(len(letters), bignum)
return (letters[choice], bignum)
@qix
qix / password.py
Created November 16, 2012 15:40
One password to many using bcrypt
import bcrypt
def take(N, bignum):
mod = bignum % N
bignum = bignum / N
return (mod, bignum)
def choice(letters, bignum):
choice, bignum = take(len(letters), bignum)
return (letters[choice], bignum)
Date: Mon, 5 Nov 2012 11:09:20 +0200
Subject: SuperHappyDevHouse CPT on 17th November
Hi all,
We're finally running our second SuperHappyDevHouse at codebridge in
Claremont on 17th November; this time sponsored by Amazon.
It is a non-exclusive event intended for creative and curious people
interested in technology. We're about knowledge sharing, technology
exploration, and ad-hoc collaboration. Come to have fun, build things,