Seedbox-Components/Torrent Clients/Deluge/deluge.Userpass.py

22 lines
298 B
Python
Raw Normal View History

2021-08-05 02:39:27 +08:00
# Obtain from https://github.com/amefs/quickbox-lite
#!/usr/bin/env python
#
# Deluge password generator
#
# deluge.password.py <password> <salt>
#
#
import hashlib
import sys
password = sys.argv[1]
salt = sys.argv[2]
s = hashlib.sha1()
s.update(salt)
s.update(password)
print s.hexdigest()