Password Crack - danielwilczak101/EasyGA GitHub Wiki

We can use the EasyGA python package to adapt to constraints and solve problems, such as cracking a password.

For this problem, a password is generated, and a genetic algorithm is used to optimize a string of ASCII characters until it matches the provided password. Each time it cracks a password can be treated as the chromosome of the optimization GA, where the number of generations it takes to crack the password is the fitness of the chromosome. The optimization GA is made up of genes that correlate to different settings for the password crack GA and uses the EasyGA defaults to optimize these settings in order to crack the password faster.

The code for this example can be found here

To execute the code, run it from a terminal window using this command, where [password] is the password you want to crack:

$ passwordCrack.py [password]