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