thara Posted July 9, 2012 Share Posted July 9, 2012 Hi... Everyone. I have stored passwords in the database are encrypted using MySQL?s SHA1() function. So can I know is there a way to retrieve an unencrypted version of a password? Any comments are greatly appreciated. Thank You. Quote Link to comment https://forums.phpfreaks.com/topic/265400-unencrypt-mysql-sha1-function/ Share on other sites More sharing options...
Pikachu2000 Posted July 9, 2012 Share Posted July 9, 2012 No. Quote Link to comment https://forums.phpfreaks.com/topic/265400-unencrypt-mysql-sha1-function/#findComment-1360182 Share on other sites More sharing options...
boompa Posted July 9, 2012 Share Posted July 9, 2012 They're not encrypted, they're hashed. Encryption is a two-way process, hashing is one-way. Quote Link to comment https://forums.phpfreaks.com/topic/265400-unencrypt-mysql-sha1-function/#findComment-1360184 Share on other sites More sharing options...
thara Posted July 9, 2012 Author Share Posted July 9, 2012 thanks for response.. Is there an alternative solution to get normal password from the database? Quote Link to comment https://forums.phpfreaks.com/topic/265400-unencrypt-mysql-sha1-function/#findComment-1360185 Share on other sites More sharing options...
Pikachu2000 Posted July 9, 2012 Share Posted July 9, 2012 No. Hashing is a one-way street. What are you trying to accomplish? Quote Link to comment https://forums.phpfreaks.com/topic/265400-unencrypt-mysql-sha1-function/#findComment-1360189 Share on other sites More sharing options...
thara Posted July 9, 2012 Author Share Posted July 9, 2012 I have a login system in my website that enable users to register my website. So I need to send an email to that registered user telling their username, password etc when they are registering in my website. Quote Link to comment https://forums.phpfreaks.com/topic/265400-unencrypt-mysql-sha1-function/#findComment-1360194 Share on other sites More sharing options...
Pikachu2000 Posted July 9, 2012 Share Posted July 9, 2012 Don't email passwords. Provide a way to change it if it's been forgotten, If the user just registered, they better be able to remember their password long enough for a confirmation email to arrive. Quote Link to comment https://forums.phpfreaks.com/topic/265400-unencrypt-mysql-sha1-function/#findComment-1360196 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.