mirror of
https://github.com/S2-/pwgen.git
synced 2025-08-03 01:00:04 +02:00
add some more special chars
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
function randPassword(length, includeSpecial) {
|
function randPassword(length, includeSpecial) {
|
||||||
let pwdChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
|
let pwdChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
|
||||||
if (includeSpecial) {
|
if (includeSpecial) {
|
||||||
pwdChars += '°^!"§$%&\/()=?`´\\}][{²³€|<>-.,;:*+_';
|
pwdChars += '°^!"§$%&/()=?`´\\}][{²³€|<>-.,;:*+_µ@~';
|
||||||
}
|
}
|
||||||
let randPassword = Array(length).fill(pwdChars).map(function(x) {
|
let randPassword = Array(length).fill(pwdChars).map(function(x) {
|
||||||
return x[Math.floor(Math.random() * x.length)]
|
return x[Math.floor(Math.random() * x.length)]
|
||||||
|
Reference in New Issue
Block a user