salt_pass

PHOTO EMBED

Wed Oct 19 2022 07:19:26 GMT+0000 (Coordinated Universal Time)

Saved by @Bird #python

def gen_pass_hash(password, salt):
    try:
        string_to_hash = password + salt
        hash_obj = hashlib.sha256(str(string_to_hash).encode('utf-8'))
        return True, hash_obj.hexdigest()
    except IndexError:
        return False, "Hashing Failure"
content_copyCOPY