3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Crypt\Password
;
12 interface PasswordInterface
15 * Create a password hash for a given plain text password
17 * @param string $password The password to hash
18 * @return string The formatted password hash
20 public function create($password);
23 * Verify a password hash against a given plain text password
25 * @param string $password The password to hash
26 * @param string $hash The supplied hash to validate
27 * @return bool Does the password validate against the hash
29 public function verify($password, $hash);