From: http://github.com/crowell/keygenme