Computing.Net > Forums > Web Development > Encrypted passwords not working

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Encrypted passwords not working

Reply to Message Icon

Name: salchipapi
Date: April 20, 2005 at 21:11:12 Pacific
OS: Win XP
CPU/Ram: 1.2 AMD, 224 MB
Comment:

Hey, I'm using a php signup script on my website that I downloaded from a site, the script uses mysql, htpasswd and htaccess, my problem is after the users signed up
when they try to log in to protected files their username and password doesn't work I've checked the .htpasswd
file and notice that the password was encrypted in a different way, the script has 2 format of encrypting
the passwords..they look like this

username:aaT1pdS0NZaTE
(script format 1)

username:b3be0b50739dcb1dc3effd8bae1e100a
(script format 2)

I tried both formats and neither of them work the only format that works with my webserver is when I encrypt
the password using apache htpasswd.exe

username:$Bfu2$GD4..$cGdDzkSXwf0C8HDRUMSg1
(apache format)

is there any way I can make my webserver work with the 2 other encrypted passwords?



Sponsored Link
Ads by Google

Response Number 1
Name: -Bryan-
Date: April 20, 2005 at 23:34:17 Pacific
Reply:

The easiest method (though not as secure as the Apache method) would be to store the username and passwords in a database, using standard MD5 hashes, and don't even deal with .htpasswd.

If you do want to use the .htpasswd, you should use crypt() if I'm not mistaken.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Encrypted passwords not working

Java Script not working on web site www.computing.net/answers/webdevel/java-script-not-working-on-web-site/1693.html

Ctrl key not working in DW8 www.computing.net/answers/webdevel/ctrl-key-not-working-in-dw8/2213.html

Virtualhost not working. www.computing.net/answers/webdevel/virtualhost-not-working/1701.html