Created
January 19, 2024 08:17
-
-
Save lisp3r/f38620c81e47b206c9ed2fae6932629b to your computer and use it in GitHub Desktop.
Calculate the time of hash cracking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use the MD5 GPU hash rate from the GPU benchmark of this section | |
# and calculate the cracking time in minutes with the following conditions. | |
# Use a charset of all lower and upper case letters of the English alphabet | |
# and use a password length of 8. Enter the answer as full minutes without seconds. | |
charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
passw_length = 8 | |
# hashcat -b | |
hash_rate = 681851 * 100000 # hash rate for MD5 GPU from the benchmark | |
keyspace = (len(charset) ** passw_length) | |
crack_speed_sec = keyspace / hash_rate | |
crack_speed_min = crack_speed_sec / 60 | |
print(crack_speed_min) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment