Creating a Password Strength Indicator


This tutorial utilizes strength.js to test the strength of your password and can be utilized on your own website's registration page.

Creating a Password Strength Indicator

This tutorial utilizes strength.js by Aaron Lumsden to test the strength of a password and can be utilized on your own website's registration page to inform users of the strength of their chosen password.

Below is the HTML, CSS, and JavaScript required.

Step 1 - Add the HTML below to your web page

Step 2 - Add the CSS below the main stylesheet of your website

Copy and Paste the CSS from our GitHub page at password-strength.css

Step 3 - Add the JavaScript below to a file called password.js

Step 4 - Add the includes below to the page where your password input lives

Author

Matthieu McClintock
Contributions Editor here at Solodev. Want to be featured on the Solodev Blog? Get in touch.
Follow me on Twitter

Get started today

Join people and businesses across the globe that trust Solodev.

We never share your information with anyone. Learn more

We use cookies to provide and improve our services. By using our site, you consent to cookies.