validChars
Posted: 2019-04-25 13:44
Hi all.
When FileZilla Server is generating salt for passwords in Accounts.cpp it uses these characters:
char const validChars[] = "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
But some of those aren't allowed in XML so need to be escaped.
< = <
> = >
& = &
So I think those characters should be removed, leaving:
char const validChars[] = "!\"#$%'()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
That's still many characters.
Does that make sense?
When FileZilla Server is generating salt for passwords in Accounts.cpp it uses these characters:
char const validChars[] = "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
But some of those aren't allowed in XML so need to be escaped.
< = <
> = >
& = &
So I think those characters should be removed, leaving:
char const validChars[] = "!\"#$%'()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
That's still many characters.
Does that make sense?