From 29bde50fbe0b088b49a7271be8fde41c5eb1c0bc Mon Sep 17 00:00:00 2001 From: MixtapeXD <46252377+AlecMcCutcheon@users.noreply.github.com> Date: Mon, 24 Aug 2020 17:42:45 -0400 Subject: [PATCH] Update README.md --- README.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index df8a3b9..309bd58 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,29 @@ # Password-Entropy-Calculator Built off of tests-always-included/password-strength -This Calculates the relative strength of a password using several techniques. Primarily this relies on letter trigraphs, which check each set of 3 characters in a given password. This also calculates the entropy bits based on Claude Shannon's technique on determining the number of bits required to represent a set of characters and multiplying it by the length of the password and there's a check to see if a password is contained in a list of common passwords and as a bonus there's also a "Search Space" or (Total Possible Combinations) Calculator, inspired by GRC's Interactive Brute Force Password “Search Space” Calculator. - +This Calculates the relative strength of a password using several techniques. Primarily this relies on letter trigraphs, which check each set of 3 characters in a given password. This also calculates the entropy bits based on Claude Shannon's technique on determining the number of bits required to represent a set of characters and multiplying it by the length of the password and there's a check to see if a password is contained in a list of common passwords and as a bonus there's also a "Search Space" or (Total Possible Combinations) Calculator, inspired by GRC's Interactive Brute Force Password “Search Space” Calculator. You can toggle between the normal algorithm which is: +```javascript + Math.pow(number-of-characters, Password-length); +``` +and a symbol character set size of 32. + +GRC's algorithm which is: + +```javascript +function GRC(Password-length) +{ + if(Password-length < 1) + { + return 0 ; + } + if (Password-length == 1) + { + return Math.pow(number-of-characters, Password-length); + } + return Math.pow(number-of-characters, Password-length - 1) + GRC(Password-length - 1); +} +``` +and a symbol character set size of 32. + ![Password Entropy Calculator](https://raw.githubusercontent.com/AlecMcCutcheon/Password-Entropy-Calculator/master/Password%20Entropy%20Calculator%20.jpg) Format: ![Alt Text](url)