[Tutor] Verifying password hash is SHA512
Mats Wichmann
mats at wichmann.us
Tue Nov 16 20:20:28 EST 2021
On 11/16/21 11:11, Ken Lai wrote:
> Hi All,
>
> I have a program that hashes passwords into SHA512, but I need to confirm.
> I found PHP code on the net:
>
> $hashed = hash("sha512", $password);
>
> Does Python have an equivalent?
it's not really that clear what you're asking.
In Python, the hashlib module is how you deal with hashes:
https://docs.python.org/3/library/hashlib.html
it supports many different hash formats, many of which are implemented
behind the covers by a non-Python library.
More information about the Tutor
mailing list