From 8063f38a577059ac6c5aec123ac9a77306255bae Mon Sep 17 00:00:00 2001 From: Ziga Date: Wed, 5 Oct 2022 10:50:09 +0200 Subject: [PATCH] Improved example and added more information to the library --- PasswordEntropy.js | 6 ++++++ PasswordEntropy.min.js | 5 +++++ index.html | 3 --- index.js | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/PasswordEntropy.js b/PasswordEntropy.js index 344e4f6..5b2cc70 100644 --- a/PasswordEntropy.js +++ b/PasswordEntropy.js @@ -1,3 +1,9 @@ +/* +PasswordEntropy-JS v1.0.2 +https://github.com/Rabbit-Company/PasswordEntropy-JS +License: GPL-3.0 +*/ + class PasswordEntropy{ static lcase = "abcdefghijklmnopqrstuvwxyz"; diff --git a/PasswordEntropy.min.js b/PasswordEntropy.min.js index e9b0718..c5c7639 100644 --- a/PasswordEntropy.min.js +++ b/PasswordEntropy.min.js @@ -1 +1,6 @@ +/* +PasswordEntropy-JS v1.0.2 +https://github.com/Rabbit-Company/PasswordEntropy-JS +License: GPL-3.0 +*/ class PasswordEntropy{static lcase="abcdefghijklmnopqrstuvwxyz";static ucase="ABCDEFGHIJKLMNOPQRSTUVWXYZ";static numb="1234567890";static symbol="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ ";static includesChar(s,t){for(let i=0;i PasswordEntropy-JS -

PasswordEntropy-JS

-

Your password entropy is 0.

Performance Test

@@ -20,7 +18,6 @@

Performance Test

- \ No newline at end of file diff --git a/index.js b/index.js index 592ce9d..89ffdc7 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -document.getElementById("btn-calculate").addEventListener('click', () => { +document.getElementById("password").addEventListener('input', () => { let password = document.getElementById("password").value; document.getElementById("result").innerText = PasswordEntropy.calculate(password);