hi to all
I design my login system with registration form but now problem is that my registration form in main directory rather than that private directoy which i authenticated means if somebody want specific content then it must to register or login.
now when x user register them and when it enter to database the password store in clear text and i want to encrypt using sha1 or MD5 technique.
I had search so much link on the web but i don't get correct option for me .
so please can anybody give me a example illustration for encrypting password and store to database.
Please use very simple script.
thanks