Skip to content

Commit

Permalink
yolo
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGripe committed Jun 23, 2024
1 parent c7408c4 commit f54a543
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/0Password.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var ZeroPassword = function () {
var upperCaseSet = "ABCDEFGHJKLMNPQRSTUVWXYZ";
var lowerCaseSet = "abcdefghijkmnoprstuvwxyz";
var numbersSet = "234567892345678923456789";
var specialCharSet = "!#%+:=?@!#%+:=?@!#%+:=?@";
var specialCharSet = "!#%+:=?@"; // The frequency of special characters is intentionally reduced.

function getChar(hash, charSet, index) {
return charSet[hash.charCodeAt(index) % charSet.length];
Expand Down Expand Up @@ -66,6 +66,7 @@ var ZeroPassword = function () {
(lowerCase ? "L" : "") +
(numbers ? "N" : "") +
(specialChars ? "S" : "") +
length.toString() +
attempt.toString();
var hash = CryptoJS.SHA256(baseString).toString(CryptoJS.enc.Base64);

Expand Down

0 comments on commit f54a543

Please sign in to comment.