Defined by the same specification as sha256_crypt, SHA512-Crypt is identical to SHA256-Crypt in almost every way, including design and security issues. The only difference is the doubled digest size; while this provides some increase in security, it’s also a bit slower 32 bit operating systems.
See also
This class implements the SHA512-Crypt password hash, and follows the Password Hash Interface.
It supports a variable-length salt, and a variable number of rounds.
The encrypt() and genconfig() methods accept the following optional keywords:
| Parameters: |
|
|---|
Note
This class will use the first available of two possible backends:
You can see which backend is in use by calling the get_backend() method.
SHA512-Crypt is defined by the same specification as SHA256-Crypt. The format and algorithm are exactly the same, except for the following notable differences:
See sha256_crypt for the format and algorithm descriptions, as well as security notes.