Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogue-35 authored Sep 17, 2024
1 parent 6531c04 commit 9cbe62f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions art/PasswordGen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Made using BlotFont Library:


//edit to change the number of passwords and their length
const numPassword = 5 //number of passwords to generate
const length = 20; //password length
const numPassword = 15 //number of passwords to generate
const length = 37; //password length

//Change to limit what chars can be used (do not add any that are not listed, they do not have code to work)
const charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#$%()_+[]|;:,.<>?';
Expand Down Expand Up @@ -60,7 +60,7 @@ function passwordGen(length) {
const hardwareConcurrency = navigator.hardwareConcurrency || ''; // Number of CPU threads (if available)
const timezoneOffset = new Date().getTimezoneOffset(); // Timezone offset in minutes
const platform = navigator.platform; // Platform
const randomBytes = Array.from({ length: 16 }, () => Math.random()).join('-'); // Additional random bytes
const randomBytes = Array.from({ length: 16 }, () => bt.rand()).join('-'); // Additional random bytes

// Combine all sources of entropy into a single string
const entropySources = [
Expand Down

0 comments on commit 9cbe62f

Please sign in to comment.