Skip to content

Instantly share code, notes, and snippets.

@raullenchai
raullenchai / TimeLockPuzzle.py
Created July 3, 2012 19:23
Python implementation of Rivest's Time-lock Puzzles
'''
Python implementation of Rivest's Time-lock Puzzles as described
here: http://people.csail.mit.edu/rivest/lcs35-puzzle-description.txt
'''
import time
def GenPuzzle(t, p, q):
n = p*q