Are you building this for a "Forgot My Password" feature? You could look into using Devise and password recovery is built right in.
If you still want to roll your own I'd recommend, at a minimum, you instead reset their password to a random password, email them the random password and let them reset it. That's still not very secure though. Sending any password in plain text defeats the purpose of hashing and storing your passwords. There's several better solutions like having user answer security questions, sending them a link to a temporary obfuscated page that allows them to reset their password, etc. If you're rolling your own right now though I definitely recommend looking into the Devise gem as it will do all this for you. -- Nate West <http://about.me/natewest> -- On Wed, Jul 24, 2013 at 10:00 AM, Dheeraj Kumar <a.dheeraj.ku...@gmail.com>wrote: > You cannot un-hash those passwords. So no, it is not possible. > > -- > Dheeraj Kumar > > On Wednesday 24 July 2013 at 8:13 PM, honey ruby wrote: > > Hi I am saving password with hashed_password and salt in table. Now I need > to send those passwords via SMS can it be possible.Kindly give me some > suggestion plz . > > > > > Thanks in advance > Cheers > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/c035582a-7895-4963-8e4c-e3b5cdf3145c%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/E61EDA1A69EA4D99A2FBE602297D4DA0%40gmail.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPkSWEEPCMH0HT%3DgGfwdmVmEsED9DVwaivhJK0CceJZf%3DbTjyQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.