htdigest file (Apache password storage)

htdigest file (Apache password storage)


The .htdigest is a flat-file used to store:

for digest authentication of Apache HTTP Server.

The name of the file is given in the .htaccess configuration, and can be anything, but .htdigest is the canonical name.


htdigest command

This file is often maintained with the shell command “htdigest” which can add, and update users, and will properly encode the password for use.

The “htdigest” command is found in the apache2-utils package on dpkg package management systems and the httpd-tools package on RPM package management systems.

The syntax of the htdigest command:[7]

htdigest [ -c ] passwdfile realm username


The format of the .htdigest file:


Documentation / Reference

Share this page:
Follow us:
Task Runner