{
    "content": [
        {
            "type": "text",
            "text": "# openssl-passwd (man)\n\n## NAME\n\nopenssl-passwd - compute password hashes\n\n## SYNOPSIS\n\nopenssl passwd [-help] [-1] [-apr1] [-aixmd5] [-5] [-6] [-salt string] [-in file] [-stdin]\n[-noverify] [-quiet] [-table] [-reverse] [-rand files] [-writerand file] [-provider name]\n[-provider-path path] [-propquery propq] [password]\n\n## DESCRIPTION\n\nThis command computes the hash of a password typed at run-time or the hash of each password\nin a list.  The password list is taken from the named file for option -in, from stdin for\noption -stdin, or from the command line, or from the terminal otherwise.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (17 subsections)\n- **EXAMPLES**\n- **HISTORY**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "openssl-passwd",
        "section": "",
        "mode": "man",
        "summary": "openssl-passwd - compute password hashes",
        "synopsis": "openssl passwd [-help] [-1] [-apr1] [-aixmd5] [-5] [-6] [-salt string] [-in file] [-stdin]\n[-noverify] [-quiet] [-table] [-reverse] [-rand files] [-writerand file] [-provider name]\n[-provider-path path] [-propquery propq] [password]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Print out a usage message."
            },
            {
                "flag": "-1",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Use the apr1 algorithm (Apache variant of the BSD algorithm)."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Use the AIX MD5 algorithm (AIX variant of the BSD algorithm)."
            },
            {
                "flag": "-5",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-6",
                "long": null,
                "arg": null,
                "description": "<https://www.akkadia.org/drepper/SHA-crypt.txt>."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Use the specified salt. When reading a password from the terminal, this implies -noverify."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Read passwords from file."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Read passwords from stdin."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Don't verify when reading a password from the terminal."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Don't output warnings when passwords given at the command line are truncated."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "In the output list, prepend the cleartext password and a TAB character to each password hash."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "When the -table option is used, reverse the order of cleartext and hash."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "See \"Random State Options\" in openssl(1) for details."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "See \"Provider Options\" in openssl(1), provider(7), and property(7)."
            }
        ],
        "examples": [
            "% openssl passwd -1 -salt xxxxxxxx password",
            "$1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.",
            "% openssl passwd -apr1 -salt xxxxxxxx password",
            "$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0",
            "% openssl passwd -aixmd5 -salt xxxxxxxx password",
            "xxxxxxxx$8Oaipk/GPKhC64w/YVeFD/"
        ],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-help",
                        "lines": 2
                    },
                    {
                        "name": "-1",
                        "lines": 1,
                        "flag": "-1"
                    },
                    {
                        "name": "-apr1",
                        "lines": 2
                    },
                    {
                        "name": "-aixmd5",
                        "lines": 2
                    },
                    {
                        "name": "-5",
                        "lines": 1,
                        "flag": "-5"
                    },
                    {
                        "name": "-6",
                        "lines": 2,
                        "flag": "-6"
                    },
                    {
                        "name": "-salt",
                        "lines": 3
                    },
                    {
                        "name": "-in",
                        "lines": 2
                    },
                    {
                        "name": "-stdin",
                        "lines": 2
                    },
                    {
                        "name": "-noverify",
                        "lines": 2
                    },
                    {
                        "name": "-quiet",
                        "lines": 2
                    },
                    {
                        "name": "-table",
                        "lines": 3
                    },
                    {
                        "name": "-reverse",
                        "lines": 2
                    },
                    {
                        "name": "-rand -writerand",
                        "lines": 2
                    },
                    {
                        "name": "-provider",
                        "lines": 1
                    },
                    {
                        "name": "-provider-path",
                        "lines": 1
                    },
                    {
                        "name": "-propquery",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "HISTORY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 9,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "openssl-passwd - compute password hashes\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "openssl passwd [-help] [-1] [-apr1] [-aixmd5] [-5] [-6] [-salt string] [-in file] [-stdin]\n[-noverify] [-quiet] [-table] [-reverse] [-rand files] [-writerand file] [-provider name]\n[-provider-path path] [-propquery propq] [password]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This command computes the hash of a password typed at run-time or the hash of each password\nin a list.  The password list is taken from the named file for option -in, from stdin for\noption -stdin, or from the command line, or from the terminal otherwise.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-help",
                        "content": "Print out a usage message.\n"
                    },
                    {
                        "name": "-1",
                        "content": "",
                        "flag": "-1"
                    },
                    {
                        "name": "-apr1",
                        "content": "Use the apr1 algorithm (Apache variant of the BSD algorithm).\n"
                    },
                    {
                        "name": "-aixmd5",
                        "content": "Use the AIX MD5 algorithm (AIX variant of the BSD algorithm).\n"
                    },
                    {
                        "name": "-5",
                        "content": "",
                        "flag": "-5"
                    },
                    {
                        "name": "-6",
                        "content": "<https://www.akkadia.org/drepper/SHA-crypt.txt>.\n",
                        "flag": "-6"
                    },
                    {
                        "name": "-salt",
                        "content": "Use the specified salt.  When reading a password from the terminal, this implies\n-noverify.\n"
                    },
                    {
                        "name": "-in",
                        "content": "Read passwords from file.\n"
                    },
                    {
                        "name": "-stdin",
                        "content": "Read passwords from stdin.\n"
                    },
                    {
                        "name": "-noverify",
                        "content": "Don't verify when reading a password from the terminal.\n"
                    },
                    {
                        "name": "-quiet",
                        "content": "Don't output warnings when passwords given at the command line are truncated.\n"
                    },
                    {
                        "name": "-table",
                        "content": "In the output list, prepend the cleartext password and a TAB character to each password\nhash.\n"
                    },
                    {
                        "name": "-reverse",
                        "content": "When the -table option is used, reverse the order of cleartext and hash.\n"
                    },
                    {
                        "name": "-rand -writerand",
                        "content": "See \"Random State Options\" in openssl(1) for details.\n"
                    },
                    {
                        "name": "-provider",
                        "content": ""
                    },
                    {
                        "name": "-provider-path",
                        "content": ""
                    },
                    {
                        "name": "-propquery",
                        "content": "See \"Provider Options\" in openssl(1), provider(7), and property(7).\n"
                    }
                ]
            },
            "EXAMPLES": {
                "content": "% openssl passwd -1 -salt xxxxxxxx password\n$1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.\n\n% openssl passwd -apr1 -salt xxxxxxxx password\n$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0\n\n% openssl passwd -aixmd5 -salt xxxxxxxx password\nxxxxxxxx$8Oaipk/GPKhC64w/YVeFD/\n",
                "subsections": []
            },
            "HISTORY": {
                "content": "The -crypt option was removed in OpenSSL 3.0.\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.\n\nLicensed under the Apache License 2.0 (the \"License\").  You may not use this file except in\ncompliance with the License.  You can obtain a copy in the file LICENSE in the source\ndistribution or at <https://www.openssl.org/source/license.html>.\n\n\n\n3.0.2                                        2026-06-02                         OPENSSL-PASSWD(1SSL)",
                "subsections": []
            }
        }
    }
}