mmarif4u Posted June 5, 2007 Share Posted June 5, 2007 Hi, i am hashing the users passwords. Now i have a system where user register and pay online , After confirmation, our admin send password to that user.Password is automatically created while user is registering. So my q is : is there any possibility to send md5 or other hash passwords to users later when payment is confirmed. I know that its not possible. Is there any alternative for such kind of process. That i make the user password secure and also can send to users later. Note: i dont want to use two way encryption. Thanks Link to comment https://forums.phpfreaks.com/topic/54239-solved-hash-passwords/ Share on other sites More sharing options...
only one Posted June 5, 2007 Share Posted June 5, 2007 no, i asked this question before, you cant unhash a hash code just ask them to insert their pass again then something like if(md5($pass)==$user['pass']){ send them it.. }else{ echo "passwords do not match"; } Link to comment https://forums.phpfreaks.com/topic/54239-solved-hash-passwords/#findComment-268179 Share on other sites More sharing options...
mmarif4u Posted June 5, 2007 Author Share Posted June 5, 2007 just ask them to insert their pass again They r new users they don't know their password yet then how they will change it. I am asking to send a hashed pass to user later(May be 1 or 2 days later of registration). So pulling out that pass i think is not possible, What will be an alternative method for it. Link to comment https://forums.phpfreaks.com/topic/54239-solved-hash-passwords/#findComment-268194 Share on other sites More sharing options...
R1der Posted June 5, 2007 Share Posted June 5, 2007 Get them to click a 'Forgot password link' then have it email them with a link so thay can reset there password. Would that work? Link to comment https://forums.phpfreaks.com/topic/54239-solved-hash-passwords/#findComment-268196 Share on other sites More sharing options...
mmarif4u Posted June 5, 2007 Author Share Posted June 5, 2007 I dont think so, bcoz if i provide the link as "Forgot password" and still there payment is not confirmed, Than they will click that link and get password without payment. Am i right. Link to comment https://forums.phpfreaks.com/topic/54239-solved-hash-passwords/#findComment-268210 Share on other sites More sharing options...
R1der Posted June 5, 2007 Share Posted June 5, 2007 All depends Cant you add a query To say like if thay have not paid then exit the script? Not sure like i have never had to do it.. so i dont know if it can be done with a 'if' statment But i am sure there must be a way to do it.. Link to comment https://forums.phpfreaks.com/topic/54239-solved-hash-passwords/#findComment-268215 Share on other sites More sharing options...
mmarif4u Posted June 5, 2007 Author Share Posted June 5, 2007 you add a query you glow the bulb in dark, I got it, thanks Link to comment https://forums.phpfreaks.com/topic/54239-solved-hash-passwords/#findComment-268216 Share on other sites More sharing options...
R1der Posted June 5, 2007 Share Posted June 5, 2007 Glad ya sorted it, *Wonders if he helped* lol Link to comment https://forums.phpfreaks.com/topic/54239-solved-hash-passwords/#findComment-268226 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.