password hash in xml config
Posted: 2020-11-19 13:06
Hello,
I´m using FileZilla Server 0.9.60 beta on server 2019.
At the moment I try to edit the FileZilla Server.xml with python to add new user accounts.
Problems here is the user password. As far as I know is the password in the xml sha512 hashed with salt.
In the xml file I have:
my python code looks like:
which calculates this hash d1edf4d84d98b8c14a51d35c6097032356a2af3803004674856086189554838caeaf2cb88ed5b35c1aeeea57d048c9ac46fc3988a8bc552ee7428480196b5f9e
Any hints for me, why th python hash differs from the gui generated hash in the xml file?
thank you
I´m using FileZilla Server 0.9.60 beta on server 2019.
At the moment I try to edit the FileZilla Server.xml with python to add new user accounts.
Problems here is the user password. As far as I know is the password in the xml sha512 hashed with salt.
In the xml file I have:
Code: Select all
<Option Name="Pass">89750A1828302B7AAAACAC8D4192910FECB4A2ECAAD11341827872CDBAE9FC2C2CE7E3CC11D2EBD9511C80FD140C64807A25BD8FD73DFB7E1E1E0CCCDD9F7AE2</Option>
<Option Name="Salt">'|kOdH6u@z5u3wH7l_.%@|Hri$^7O\`I]t0S`co-/1;]Ou.c8$<rTEHRI)F}~b_!</Option>
my python code looks like:
Code: Select all
import hashlib
user_entered_password = 'As1234567'
salt = "'|kOdH6u@z5u3wH7l_.%@|Hri$^7O\`I]t0S`co-/1;]Ou.c8$<rTEHRI)F}~b_!"
db_password = user_entered_password+salt
h = hashlib.sha512(db_password.encode())
print(h.hexdigest())
Any hints for me, why th python hash differs from the gui generated hash in the xml file?
thank you