{
    "content": [
        {
            "type": "text",
            "text": "# Crypt::UnixCrypt (perldoc)\n\n## NAME\n\nCrypt::UnixCrypt - perl-only implementation of the \"crypt\" function.\n\n## SYNOPSIS\n\nuse Crypt::UnixCrypt;\n$hashed = crypt($plaintext,$salt);\n# always use this module's crypt\nBEGIN { $Crypt::UnixCrpyt::OVERRIDEBUILTIN = 1 }\nuse Crypt::UnixCrypt;\n\n## DESCRIPTION\n\nThis module is for all those poor souls whose perl port answers to the use of \"crypt()\" with the\nmessage `The crypt() function is unimplemented due to excessive paranoia.'.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (1 subsections)\n- **COPYRIGHT**\n- **AUTHORS**\n- **CAVEATS**\n- **SEE ALSO** (1 subsections)\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Crypt::UnixCrypt",
        "section": "",
        "mode": "perldoc",
        "summary": "Crypt::UnixCrypt - perl-only implementation of the \"crypt\" function.",
        "synopsis": "use Crypt::UnixCrypt;\n$hashed = crypt($plaintext,$salt);\n# always use this module's crypt\nBEGIN { $Crypt::UnixCrpyt::OVERRIDEBUILTIN = 1 }\nuse Crypt::UnixCrypt;",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 33,
                "subsections": [
                    {
                        "name": "crypt",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "COPYRIGHT",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "CAVEATS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 1,
                "subsections": [
                    {
                        "name": "perl",
                        "lines": 1
                    }
                ]
            }
        ],
        "sections": {
            "NAME": {
                "content": "Crypt::UnixCrypt - perl-only implementation of the \"crypt\" function.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Crypt::UnixCrypt;\n$hashed = crypt($plaintext,$salt);\n\n# always use this module's crypt\nBEGIN { $Crypt::UnixCrpyt::OVERRIDEBUILTIN = 1 }\nuse Crypt::UnixCrypt;\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module is for all those poor souls whose perl port answers to the use of \"crypt()\" with the\nmessage `The crypt() function is unimplemented due to excessive paranoia.'.\n\nThis module won't overload a built-in \"crypt()\" unless forced by a true value of the variable\n$Crypt::UnixCrypt::OVERRIDEBUILTIN.\n\nIf you use this module, you probably neither have a built-in \"crypt()\" function nor a crypt(3)\nmanpage; so I'll supply the appropriate portions of its description (from my Linux system) here:\n\ncrypt is the password encryption function. It is based on the Data Encryption Standard algorithm\nwith variations intended (among other things) to discourage use of hardware implementations of a\nkey search.\n\n$plaintext is a user's typed password.\n\n$salt is a two-character string chosen from the set [a-zA-Z0-9./]. This string is used to\nperturb the algorithm in one of 4096 different ways.\n\nBy taking the lowest 7 bit of each character of $plaintext (filling it up to 8 characters with\nzeros, if needed), a 56-bit key is obtained. This 56-bit key is used to encrypt repeatedly a\nconstant string (usually a string consisting of all zeros). The returned value points to the\nencrypted password, a series of 13 printable ASCII characters (the first two characters\nrepresent the salt itself).\n\nWarning: The key space consists of 256 equal 7.2e16 possible values. Exhaustive searches of\nthis key space are possible using massively parallel computers. Software, such as crack(1), is\navailable which will search the portion of this key space that is generally used by humans for\npasswords. Hence, password selection should, at minimum, avoid common words and names. The use\nof a passwd(1) program that checks for crackable passwords during the selection process is\nrecommended.\n\nThe DES algorithm itself has a few quirks which make the use of the crypt(3) interface a very\npoor choice for anything other than password authentication. If you are planning on using the",
                "subsections": [
                    {
                        "name": "crypt",
                        "content": "one of the widely available DES libraries.\n"
                    }
                ]
            },
            "COPYRIGHT": {
                "content": "This module is free software; you may redistribute it and/or modify it under the same terms as\nPerl itself.\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "Written by Martin Vorlaender, martin@radiogaga.harz.de, 11-DEC-1997. Based upon Java source code\nwritten by jdumas@zgs.com, which in turn is based upon C source code written by Eric Young,\neay@psych.uq.oz.au.\n",
                "subsections": []
            },
            "CAVEATS": {
                "content": "In extreme situations, this function doesn't behave like crypt(3), e.g. when called with a salt\nnot in [A-Za-z0-9./]{2}.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "",
                "subsections": [
                    {
                        "name": "perl",
                        "content": ""
                    }
                ]
            }
        }
    }
}