1
0
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:
s2
2017-12-02 14:46:17 +01:00
parent fa2a5ccc81
commit bb39fb0363

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