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

22 lines
298 B
Python

# 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()