1
0
mirror of https://github.com/S2-/pwgen.git synced 2025-08-02 17:00:03 +02:00

add all ascii and extended ascii characters

This commit is contained in:
s2
2017-12-01 20:09:01 +01:00
parent c534404577
commit 1a5d5438cf

View File

@@ -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 += '°^!"§$%&/()=?`´\\}][{²³€|<>-.,;:*+_µ@~'; pwdChars += ' !"#$%&\'()*+,-./:;<=>?@[\]^_`{|}~eB€ƒ„…†‡ˆ‰ŠŒŽ“”•˜™šœžŸ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ';
} }
if (exclude) { if (exclude) {