{
    "mode": "man",
    "parameter": "OPENSSL-PASSWD",
    "section": "1SSL",
    "url": "https://www.chedong.com/phpMan.php/man/OPENSSL-PASSWD/1SSL/json",
    "generated": "2026-06-15T19:56:46Z",
    "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]",
    "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": []
        }
    },
    "summary": "openssl-passwd - compute password hashes",
    "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": []
}