Implementation of a simple algorithm to encrypt and decrypt time-lock puzzles described by Rivest et al.