You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by clayton cottingham aka drfrog <dr...@smartt.com> on 2000/07/08 00:26:39 UTC
best encryption module
whats the best encryption module for use with mod perl?
i want to encrypt passwords store in a db and then be able to check
what a users inputs against it
Re: best encryption module
Posted by Rudy R <ru...@monkeybrains.net>.
Probably, you don't even need (or want) to encrypt the password.
Rather, all you want is a MAC for the password the user supplies. In
this case, use MD5.
Rudy
clayton cottingham aka drfrog wrote:
>
> whats the best encryption module for use with mod perl?
> i want to encrypt passwords store in a db and then be able to check
> what a users inputs against it
Re: best encryption module
Posted by Matt Carothers <ma...@telepath.com>.
On Fri, 7 Jul 2000, clayton cottingham aka drfrog wrote:
> whats the best encryption module for use with mod perl?
> i want to encrypt passwords store in a db and then be able to check
> what a users inputs against it
Perl has a built-in crypt() function. The actual encryption algorithm used
depends on your system's C library. Older systems still use 56-bit DES.
Newer ones may use something stronger like MD5 or Blowfish. See your crypt(3)
manpage and `perldoc -f crypt` for more information.
- Matt