Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Using htaccess & htpasswd for password protection

by gornox_zx (Priest)
on Jul 10, 2001 at 22:07 UTC ( #95389=note: print w/replies, xml ) Need Help??

in reply to Using htaccess & htpasswd for password protection

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.
  • Comment on Re: Using htaccess & htpasswd for password protection

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://95389]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2019-10-16 07:48 GMT
Find Nodes?
    Voting Booth?