# phpman > man > htdigest(1)

[HTDIGEST(1)](https://www.chedong.com/phpMan.php/man/HTDIGEST/1/markdown)                                   htdigest                                   [HTDIGEST(1)](https://www.chedong.com/phpMan.php/man/HTDIGEST/1/markdown)



## NAME
       htdigest - manage user files for digest authentication


## SYNOPSIS
       **htdigest** [ -**c** ] _passwdfile_ _realm_ _username_



## SUMMARY
       **htdigest** is used to create and update the flat-files used to store usernames, realm and pass‐
       word for digest authentication of HTTP users. Resources available from the Apache HTTP server
       can be restricted to just the users listed in the files created by **htdigest**.


       This  manual page only lists the command line arguments. For details of the directives neces‐
       sary to configure digest authentication in httpd see the Apache manual, which is part of  the
       Apache distribution or can be found at <http://httpd.apache.org/>.



## OPTIONS
### -c

       _passwdfile_
              Name  of  the  file  to contain the username, realm and password. If **-c** is given, this
              file is created if it does not already exist, or deleted and recreated if it does  ex‐
              ist.

       _realm_  The     realm     name     to     which     the     user     name     belongs.     See
              <http://tools.ietf.org/html/rfc2617#section-3.2.1> for more details.

       _username_
              The user name to create or update in _passwdfile_. If _username_ does not  exist  is  this
              file, an entry is added. If it does exist, the password is changed.


## SECURITY CONSIDERATIONS
       This program is not safe as a setuid executable. Do _not_ make it setuid.




Apache HTTP Server                           2018-07-06                                  [HTDIGEST(1)](https://www.chedong.com/phpMan.php/man/HTDIGEST/1/markdown)
