import hashlib
def saltPassword_sha512(password):
    salt = b'cHp3'
    hashed = hashlib.sha512(salt + password).hexdigest()
    print("%s:%s" % (salt, hashed)) # To należy zapamiętać
    return hashed

plaintext_password = b'Haslo'
hashed_sha512 = saltPassword_sha512 (plaintext_password)
