Skip to content

Commit 1862a4d

Browse files
authored
Update index.html
1 parent 7579f27 commit 1862a4d

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

index.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,24 @@ <h1 style="margin-bottom:20px;">Zero Bot Gate</h1>
5757

5858

5959
const data = [
60-
"password"
60+
"password",
61+
"thisisatest",
62+
"0zv0ja7ZCbBF3EdC0a+lYH/sHXXrceh3uNKC9VW/SIM=" // 'this is a test'
6163
]
6264

6365
async function hash( pass ) {
6466
var hash = CryptoJS.SHA256( pass + "noAI" );
6567
hash = hash.toString(CryptoJS.enc.Base64);
66-
console.log("hashed " + pass + " into " + hash );
68+
console.log(" > hashed " + pass + " into " + hash );
6769
return hash;
6870
}
6971

7072
async function check( pass ) {
7173

7274
for (const stored of data) {
73-
const match = await pass === stored;
74-
if (match) return true;
75+
const match = ( pass === stored );
76+
console.log("checking " + pass + " against " + stored);
77+
if (match) return true;
7578
}
7679
return false;
7780
}
@@ -81,7 +84,7 @@ <h1 style="margin-bottom:20px;">Zero Bot Gate</h1>
8184
const input = await document.getElementById("in");
8285
const pass = input.value;
8386
console.log("password: " + pass);
84-
console.log("hashed: " + hash(pass));
87+
console.log("hashed: " + await hash(pass) );
8588
if ( check(hash(pass)) ) {
8689
console.log("APROVED");
8790
} else {

0 commit comments

Comments
 (0)