Rechercher une page de manuel
Authen::Htpasswd::Util.3pm
Langue: en
Version: 2007-07-15 (mandriva - 01/05/08)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
Authen::Htpasswd::Util - performs encryption of supported .htpasswd formatsMETHODS
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.
AUTHOR
David Kamholz "dkamholz@cpan.org"Yuval Kogman
COPYRIGHT & LICENSE
Copyright (c) 2005 - 2007 the aforementioned authors.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre