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