On May 21, 2011, at 11:12, Sathia S wrote:
> to hash the password, we can used
> $this->Auth->password('password')
>
> and how to unhash passsword from database .
You can't; that's what "hash" means.
http://en.wikipedia.org/wiki/Cryptographic_hash_function
To validate a user who's trying to log in, you hash the password the user
entered, then compare it with the hashed password in the database. The
tutorials, demos and documentation should explain this pretty well.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php