Author image

Valiant Keygen

A keygen written in Python, released for educational purposes.

A key generator, or keygen for short, is a program, used in cryptography, that aims to beget a random number that can be used for encryption and decryption at 2 ends of a communication channel.

Brief walkthrough the code: We create a string key given a number of possible characters (here all alphanumeric chars in caps and without, as well as all 10 numbers) and we compute its checksum through a trivial hash function here (ord). We accumulate the result and we crosscheck with foundValueThroughDbg to figure out if the number we found has any relevance to the value found through the debugger. If we find at...