💾 Archived View for tris.fyi › pydoc › crypt captured on 2023-01-29 at 03:09:15. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-01-08)

🚧 View Differences

-=-=-=-=-=-=-

Back to module index

Go to module by name

crypt

Wrapper to the POSIX crypt library call and associated functionality.

Functions

crypt

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

mksalt(method=None, *, rounds=None)

  Generate a salt for the specified method.

      If not specified, the strongest available method will be used.

    

Other members

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>]

Modules

errno