for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OpenTribes\Core\Silex\Service;
use OpenTribes\Core\Service\PasswordHashService;
class DefaultPasswordHashService implements PasswordHashService
{
/**
* @param $rawPassword
* @return string
*/
public function hash($rawPassword)
return password_hash($rawPassword,PASSWORD_DEFAULT);
}
* @param $hash
* @return bool
public function verify($rawPassword, $hash)
return password_verify($rawPassword,$hash);