💾 Archived View for tris.fyi › pydoc › crypt captured on 2022-07-16 at 14:54:03. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-01-08)
-=-=-=-=-=-=-
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_MD5>, <crypt.METHOD_CRYPT>]