Apache htpasswd Command

Source: Internet
Author: User

First, Introduction

HTPASSWD is a tool for Apache, which is primarily used to create and update text files that store user names and passwords, primarily for authentication based on HTTP users.

second, the grammar

USAGE:HTPASSWD [-CIMBDPSDV] [-C Cost] passwordfile username htpasswd-B[CMBDPSDV] [-C Cost] passwordfile username password htpasswd-N[IMBDPS] [-C Cost] username htpasswd-NB[MBDPS] [-C Cost] username password-C Create a newfile. -N Don't update file; display results on stdout.-B Use the password from the command line rather than prompting forit.-I Read password from stdin without verification ( forscript usage). -m force MD5 encryption of the password (default).-B Force bcrypt Encryption of the password (very secure).-C Set the computing TimeUsed forThe bcrypt algorithm (higher is MoreSecure but slower, default:5, valid:4To to). -D Force CRYPT encryption of the password (8chars Max, insecure). -S Force SHA Encryption of the password (insecure).-p does not encrypt the password (plaintext, insecure).-D Delete The specified user.-V Verify Password forThe specified user. On other systems than Windows and NetWare the'- P'flag would probably not work. The SHA algorithm does not use a salt and is LessSecure than the MD5 algorithm.

Third, examples

HTTPS://blog.linuxeye.com/333.html

Reference: https://blog.linuxeye.com/333.html

Apache htpasswd Command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.