LOCK STEEL
INTRODUCTION
Check the strength of your password simply and quickly, and with optional UI indicators. Lock Steel is lightweight, has no dependencies and is connected with the UI elements. Just pure CSS
and VanillaJS
.
FEATURES
ALGORITHM
This is the most simple password strength checker you will see online today. It definitely has alot of room for improvement, but it is starting by checking for the 4 most basic requirements for a secure password which are:
- 8 or more words
- At least 1 uppercase letter
- At least 1 number
- At least 1 special character
After deriving the percentage by these 4 determinants, repititions will be checked for:
- Repeated characters like "aa", "11", or ".." cause points to be deleted from the derived percentage.
- Obvious sequences like "123", "321" cause points to be deleted from the derived percentage.
The algorithm measures the password strength in terms of percentage. Meaning the most secure is 100% and the least secure is 0%. There are a few UI components that are in charge of displaying the percentage. The first one is the indicator bar and the other is a circle with the actual percentage digit in it. The indication bar has 4 sections, all splited into 25% each:
- 25% - red: Weak
- 50% - gold: Medium
- 75% - gold: Still Medium
- 100% - green: Strong
GENERATE PASSWORD
Once the button is clicked, the password field is filled with an auto generated password, which follows the same algorithm and ensures 100% security.
SETUP
HTML
You must have created an input field width a unique class of 'password', as that is what the css and JS will attach to.
GENERATE
visibility