I'm writing an application with Xataface and I need to change the encryption method by implementing Phpass.
I've no problem with password serialization. I had wrote a delegate class for my users table:
- Code: Select all
function password__serialize(&$record){
$hash_cost_log2 = 64;
$hash_portable = FALSE;
$password = $record->val('password');
$hasher = new PasswordHash($hash_cost_log2, $hash_portable);
$hash = $hasher->HashPassword($password);
unset($hasher);
return $hash;
}
My problem is at login. I don't know how to implement Phpass to work at login.
Do I need to write a function in app delegate class?
Do I need to use a trigger?
Can anyone help me?
I've already searched in wiki, documentation and forum without success.
Thanks
Cyanto