💾 Archived View for tris.fyi › pydoc › crypt captured on 2023-04-26 at 13:28:19. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
Wrapper to the POSIX crypt library call and associated functionality.
crypt(word, salt=None) Return a string representing the one-way hash of a password, with a salt prepended. If ``salt`` is not specified or is ``None``, the strongest available method will be selected and a salt generated. Otherwise, ``salt`` may be one of the ``crypt.METHOD_*`` values, or a string as returned by ``crypt.mksalt()``.
mksalt(method=None, *, rounds=None) Generate a salt for the specified method. If not specified, the strongest available method will be used.
METHOD_BLOWFISH = <crypt.METHOD_BLOWFISH>
METHOD_CRYPT = <crypt.METHOD_CRYPT>
METHOD_MD5 = <crypt.METHOD_MD5>
METHOD_SHA256 = <crypt.METHOD_SHA256>
METHOD_SHA512 = <crypt.METHOD_SHA512>
methods = [<crypt.METHOD_SHA512>, <crypt.METHOD_SHA256>, <crypt.METHOD_BLOWFISH>, <crypt.METHOD_MD5>, <crypt.METHOD_CRYPT>]