mirror of
https://github.com/S2-/pwgen.git
synced 2025-08-02 17:00:03 +02:00
use only special ascii chars
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
function randPassword(length, includeSpecial, exclude) {
|
function randPassword(length, includeSpecial, exclude) {
|
||||||
let pwdChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
let pwdChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||||
if (includeSpecial) {
|
if (includeSpecial) {
|
||||||
pwdChars += ' !"#$%&\'()*+,-./:;<=>?@[\]^_`{|}~eB€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ';
|
pwdChars += '!"#$%&\'()*+,-./:;<=>?@[\]^_`{|}~';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exclude) {
|
if (exclude) {
|
||||||
|
Reference in New Issue
Block a user