I’m trying to write the equivalent of
$password = Security::hash('text pw', null, true)
In CakePHP, that creates a security hash that will validate for “text pw” when a user logs in. I tried so far, in Rails:
password = Digest::MD5.hexdigest("text pw")
But that doesn’t authenticate when I try to log into the CakePHP app.
@Jeff Ancel was really close. This is how Cake does it and what I ended up using:
Hope that helps someone.