Authen::Htpasswd::Util(3pm)

Authen::Htpasswd::Util3pm

Performs encryption of supported .htpasswd formats

Methods

htpasswd_encrypt

    htpasswd_encrypt($hash,$password,$hashed_password);

Encrypts a cleartext $password given the specified $hash (valid values are "md5", "sha1", "crypt", or "plain"). For "crypt" and "md5" it is sometimes necessary to pass the old encrypted password as $hashed_password to be sure that the new one uses the correct salt. Exported by default.

supported_hashes

    my @hashes = Authen::Htpasswd::Util::supported_hashes();

Returns an array of hash types available. "crypt" and "plain" are always available. "sha1" is checked by attempting to load it via Digest. "md5" requires Crypt::PasswdMD5.

Releases

5 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9
  2. 10–11
  3. 12–13

Author

David Kamholz "[email protected]"

Yuval Kogman

From libauthen-htpasswd-perl 0.171-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.