laziness, impatience, and hubris | |
PerlMonks |
Re: Using htaccess & htpasswd for password protectionby gornox_zx (Priest) |
on Jul 10, 2001 at 22:07 UTC ( [id://95389]=note: print w/replies, xml ) | Need Help?? |
The crypt() function in Perl is a variation of a DES (Data Encryption Standard) hash algorithm. This function is similar to the c crypt() function. char *crypt(const char *key, const char *salt); Perl's crypt() function should work for what you are trying to do. You can't do your own encryption algorithm since it isn't really encryption, it is a hash. If you can't get the perl crypt to work, you can try to snatch the c version from libc source, and use it in your script, it is very portable. ~heise2k~
In Section
Seekers of Perl Wisdom
|
|