Re: Problem with Auth Component hashes

2010-04-20 Thread Stefano Martins
Duh, I forgot about the salt value and added the user in the users table without it. Thanks, people! On 19 abr, 04:50, WebbedIT p...@webbedit.co.uk wrote: If wanting to compare your hashed password with a salt inflected hashed string use if ($password ==

Re: Problem with Auth Component hashes

2010-04-19 Thread WebbedIT
If wanting to compare your hashed password with a salt inflected hashed string use if ($password == $this-Auth-password($password_confirm)) or if ($password == Security::hash(Configure::read('Security.salt') . $password_confirm) HTH Paul On Apr 18, 5:24 pm, Zaky Katalan-Ezra

Problem with Auth Component hashes

2010-04-18 Thread Stefano Martins
Hello folks, As I was studying CakePHP and the Auth Component, I've found out that it's not using sha1 hashes - or at least it doesn't seems to - by default. I had to manually set it to use md5 hashes, following the instructions given by the Cookbook. For the string stefano, Cake's generating the

Re: Problem with Auth Component hashes

2010-04-18 Thread John Andersen
It is probably related to the salt value in the configuration that CakePHP is using! Which is also why I get yet another sha1 hash for stefano in my application :) Enjoy, John On Apr 18, 6:43 pm, Stefano Martins xstefa...@gmail.com wrote: Hello folks, As I was studying CakePHP and the Auth

Re: Problem with Auth Component hashes

2010-04-18 Thread Zaky Katalan-Ezra
I think the Auth uses a salt. On Sun, Apr 18, 2010 at 6:43 PM, Stefano Martins xstefa...@gmail.comwrote: Hello folks, As I was studying CakePHP and the Auth Component, I've found out that it's not using sha1 hashes - or at least it doesn't seems to - by default. I had to manually set it to