1PasswdMD5(3)          User Contributed Perl Documentation         PasswdMD5(3)
2
3
4

NAME

6       Crypt::PasswdMD5 - Provides interoperable MD5-based crypt() functions
7

SYNOPSIS

9           use Crypt::PasswdMD5;
10
11           $cryptedpassword = unix_md5_crypt($password, $salt);
12           $apachepassword = apache_md5_crypt($password, $salt);
13

DESCRIPTION

15       the "unix_md5_crypt()" provides a crypt()-compatible interface to the
16       rather new MD5-based crypt() function found in modern operating
17       systems.  It's based on the implementation found on FreeBSD
18       2.2.[56]-RELEASE and contains the following license in it:
19
20        "THE BEER-WARE LICENSE" (Revision 42):
21        <phk@login.dknet.dk> wrote this file.  As long as you retain this notice you
22        can do whatever you want with this stuff. If we meet some day, and you think
23        this stuff is worth it, you can buy me a beer in return.   Poul-Henning Kamp
24
25       "apache_md5_crypt()" provides a function compatible with Apache's
26       ".htpasswd" files. This was contributed by Bryan Hart <bryan@eai.com>.
27       As suggested by William A. Rowe, Jr. <wrowe@lnd.com>, it is exported by
28       default.
29
30       For both functions, if a salt value is not supplied, a random salt will
31       be generated.  Contributed by John Peacock <jpeacock@cpan.org>.
32
33   EXPORT
34       None by default.
35

HISTORY

37       $Id: PasswdMD5.pm,v 1.3 2004/02/17 11:21:38 lem Exp $
38
39        19980710 luismunoz@cpan.org: Initial release
40        19990402 bryan@eai.com: Added apache_md5_crypt to create a valid hash
41                               for use in .htpasswd files
42        20001006 wrowe@lnd.com: Requested apache_md5_crypt to be
43                               exported by default.
44        20010706 luismunoz@cpan.org: Use Digest::MD5 instead of the (obsolete) MD5.
45
46       $Log: PasswdMD5.pm,v $ Revision 1.3  2004/02/17 11:21:38  lem Modified
47       the POD so that ABSTRACT can work Added usage example for
48       apache_md5_crypt()
49
50       Revision 1.2  2004/02/17 11:04:35  lem Added patch for random salts
51       from John Peacock (Thanks John!)  De-MS-DOS-ified the file Replaced
52       some '' with q// to make Emacs color highlighting happy Added CVS docs
53       Completed the missing sections of the POD documentation Changed my
54       email address to the Perl-related one for consistency The file is now
55       encoded in UTF-8
56

LICENSE AND WARRANTY

58       This code and all accompanying software comes with NO WARRANTY. You use
59       it at your own risk.
60
61       This code and all accompanying software can be used freely under the
62       same terms as Perl itself.
63

AUTHOR

65       Luis E. MuA~Xoz <luismunoz@cpan.org>
66

SEE ALSO

68       perl(1).
69
70
71
72perl v5.10.1                      2010-08-22                      PasswdMD5(3)
Impressum