Close Menu
    Facebook X (Twitter) Instagram
    Command Linux
    • About
    • How to
      • Q&A
    • OS
      • Windows
      • Arch Linux
    • AI
    • Gaming
      • Easter Eggs
    • Statistics
    • Blog
      • Featured
    • MORE
      • IP Address
      • Man Pages
    • Write For Us
    • Contact
    Command Linux
    Home - man page - MKPASSWD

    MKPASSWD

    WillieBy WillieApril 14, 2026Updated:April 14, 2026No Comments2 Mins Read
     

    NAME

    mkpasswd – Overfeatured front end to crypt(3)  

    SYNOPSIS

    mkpasswd PASSWORD SALT

     

    DESCRIPTION

    mkpasswd encrypts the given password with the crypt(3) libc function using the given salt.  

    OPTIONS

    -S, –salt=STRING
    Use the STRING as salt. It must not contain prefixes such as $1$.
    -R, –rounds=NUMBER
    Use NUMBER rounds. This argument is ignored if the method chosen does not support variable rounds. For the OpenBSD Blowfish method this is the logarithm of the number of rounds.
    -m, –method=TYPE
    Compute the password using the TYPE method. If TYPE is help then the available methods are printed.
    -5
    Like –method=md5.
    -P, –password-fd=NUM
    Read the password from file descriptor NUM instead of using getpass(3). If the file descriptor is not connected to a tty then no other message than the hashed password is printed on stdout.
    -s, –stdin
    Like –password-fd=0.
     

    ENVIRONMENT

    MKPASSWD_OPTIONS
    A list of options which will be evalued before the ones specified on the command line.
     

    BUGS

    If the –stdin option is used, passwords containing some control characters may not be read correctly.
    This programs suffers of a bad case of featuritis.
     

    AUTHOR

    mkpasswd and this man page were written by Marco d’Itri <>[email protected]> and are licensed under the terms of the GNU General Public License, version 2 or higher.

    Willie
    • Website

    Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.

    Related Posts

    XMAG

    April 30, 2026

    GIT-SUBTREE

    April 30, 2026

    XARGS

    April 30, 2026

    EPOLL_WAIT

    April 30, 2026
    Top Posts

    TRUNCATE

    March 30, 2026

    SHMOP

    February 20, 2026

    GIT-DESCRIBE

    March 16, 2026

    Lightdm: Display Manager For Linux

    December 10, 2025
    • Home
    • Contact Us
    • Privacy Policy
    • Terms of Use

    Type above and press Enter to search. Press Esc to cancel.