Back to Museum

Password Strength Checker

Security is our top priority. We take it so seriously that any password under 65 characters is considered pathetically weak. Start typing!

Live Preview

Must meet our strict security requirements.

Weak Password

Source Code

password_strength.html
<h1>Password Strength Checker</h1>

<label for="password"></label>
<input name="password" id="password_input" type="password">
<p id="prompt">Weak Password</p>

<script>
  const passwordInput = document.getElementById("password_input");
  const promptEl = document.getElementById("prompt");

  passwordInput.addEventListener('input', (event) => {
    if (passwordInput.value.length <= 64) {
      promptEl.innerText = "Weak Password";
    }

    if (passwordInput.value.length > 64) {
      promptEl.innerText = "Decent password. I hope you can remember that";
    }
  })
</script>