CODE

#SHA512 SALTER.PY BY GEORGE SKOUROUPATHIS

import string
import random
import hashlib

chars = string.ascii_lowercase + string.ascii_uppercase + string.digits
salt1 = ""
for i in range(random.randint(10,20)):
    salt1 += random.choice(chars)

salt2 = ""
for i in range(random.randint(5,15)):
    salt2 += random.choice(chars)

userinput = raw_input("Enter password: ")

password = hashlib.sha512(salt1 + userinput + salt2).hexdigest()

random1 = random.randint(100,300)
for i in range(random1):
    password = hashlib.sha512(salt1 + password + salt2).hexdigest()

print "Password has been hashed " + str(random1) + " times."
print "Salt 1 is " + str(salt1)
print "Salt 2 is " + str(salt2)
fullpass = salt1 + "|" + password + "|" + salt2
print "Full password is " + fullpass