Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Using htaccess & htpasswd for password protection

by gornox_zx (Priest)
on Jul 10, 2001 at 22:07 UTC ( [id://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.
~heise2k~
  • Comment on Re: Using htaccess & htpasswd for password protection

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-26 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found