diff --git a/README.md b/README.md index 02cd313..ef490d5 100644 --- a/README.md +++ b/README.md @@ -5,22 +5,25 @@ Built off of GRC's Interactive Brute Force Password “Search Space” Calculator. You can toggle between the normal algorithm and GRC's algorithm and create custom scenarios. Took me forever to figure out how GRC was calculating their "Search Space Size" but happy to have figured it out. Live Demo +For these examples the password is: 12345 + * The normal algorithm is: ```javascript -Var characters = 10; + +Var charset = 10; Var length = 5; - Math.pow(characters, length); + Math.pow(charset, length); ``` and a symbol character set size of 32. * GRC's algorithm is: -The characters, length, and currentlength are all dynamic variables pulled from the current password. length and currentlength are pulled from the same place but only length is manipulated by the function and currentlength preserves the current input length so it can be used in the calculation. +The charset, length, and currentlength are all dynamic variables pulled from the current password. length and currentlength are pulled from the same place but only length is manipulated by the function and currentlength preserves the current input length so it can be used in the calculation. ```javascript -Var characters = 10; +Var charset = 10; Var length = 5; Var currentlength = 5; @@ -32,9 +35,9 @@ function GRC(length) } if (length == 1) { - return Math.pow(characters, currentlength); + return Math.pow(charset, currentlength); } - return Math.pow(characters, length - 1) + GRC(length - 1); + return Math.pow(charset, length - 1) + GRC(length - 1); } ``` and a symbol character set size of 33.