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?
validChars
Moderator: Project members
Re: validChars
Yes, that's why you need to escape them when writing them into an XML document.But some of those aren't allowed in XML so need to be escaped.