| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 70220 | 2006-06-26 04:29:00 | encrypting htpasswd --passwords :help: | Morgenmuffel (187) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 466139 | 2006-06-26 04:29:00 | Hi all I have a section of a site that is "members only" I have the members usernames and passwords stored in a database unencrypted, I have a function that will take the username and password from the database and write them to the .htpasswd file that controls access to this area The problem is, i would like the passwords in the .htpasswd file to be encrypted with the appropriate encryption, but i can't find out how to do this yes i have googled and there are loads of sites that allow me to use their "online password encrypting form" but that aint what i want, i want something that works on my own server either something that encrypts the password (into the appropriate encryption) when it is put into the database or something i can add to my function that exports the data from the database to the .htpasswd file Anyhelp would be greatly appreciated as i am starting to lose my hair, and in Invercargill that means quite a cool draught Cheers |
Morgenmuffel (187) | ||
| 466140 | 2006-06-26 04:57:00 | Hi All I found the crypt() command seems to work, I added it to the function, But now i have a new problem, in that the last user on the list can't log in, and take a wild guess which user was my "test user" GGrrrrrr, but at least there appears to be light at the end of the tunnel |
Morgenmuffel (187) | ||
| 466141 | 2006-06-26 05:27:00 | Do you have a trailing return in your file? Often if a file doesn't end with a newline, the line isn't processed properly. | Erayd (23) | ||
| 466142 | 2006-06-26 06:37:00 | Do you have a trailing return in your file? Often if a file doesn't end with a newline, the line isn't processed properly. Excellent that seems to have worked thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, Cheers Nigel |
Morgenmuffel (187) | ||
| 1 | |||||