{
    "mode": "pydoc",
    "parameter": "crypt",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/crypt/json",
    "generated": "2026-06-02T14:15:56Z",
    "sections": {
        "NAME": {
            "content": "crypt - Wrapper to the POSIX crypt library call and associated functionality.\n",
            "subsections": []
        },
        "MODULE REFERENCE": {
            "content": "https://docs.python.org/3.10/library/crypt.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "crypt",
                    "content": "Return a string representing the one-way hash of a password, with a salt\nprepended.\n\nIf ``salt`` is not specified or is ``None``, the strongest\navailable method will be selected and a salt generated.  Otherwise,\n``salt`` may be one of the ``crypt.METHOD*`` values, or a string as\nreturned by ``crypt.mksalt()``.\n"
                },
                {
                    "name": "mksalt",
                    "content": "Generate a salt for the specified method.\n\nIf not specified, the strongest available method will be used.\n"
                }
            ]
        },
        "DATA": {
            "content": "METHODBLOWFISH = <crypt.METHODBLOWFISH>\nMETHODCRYPT = <crypt.METHODCRYPT>\nMETHODMD5 = <crypt.METHODMD5>\nMETHODSHA256 = <crypt.METHODSHA256>\nMETHODSHA512 = <crypt.METHODSHA512>\nmethods = [<crypt.METHODSHA512>, <crypt.METHODSHA256>, <crypt.METHOD...\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3.10/crypt.py\n\n",
            "subsections": []
        }
    },
    "summary": "crypt - Wrapper to the POSIX crypt library call and associated functionality.",
    "flags": [],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "cheatsh",
        "description": "",
        "examples": [
            {
                "description": "Encrypt a file",
                "command": "crypt -e fileToEncrypt outputFile"
            },
            {
                "description": "Decrypt a file",
                "command": "crypt -d fileToDecrypt outputFile"
            }
        ]
    }
}