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);