hash

 

 


SSHA512 vs SHA512

 

SSHA512 = Salted SHA512

    try:
        challenge_bytes = b64decode(challenge_password)
        digest = challenge_bytes[:64]
        salt = challenge_bytes[64:]

        from hashlib import sha512
        hr = sha512(plain_password)
        hr.update(salt)

        return digest == hr.digest()
    except:
        return False

 

 

Creative Commons license icon Creative Commons license icon