. */ /** * Password hashing implementation template. * * @since 4.6.0 * @package Password */ namespace Textpattern\Password; interface AdapterInterface extends \Textpattern\Adaptable\AdapterInterface { /** * Verifies the password. * * @param string $password The password * @param string $hash The hash * @return bool TRUE if the password matches the hash */ public function verify($password, $hash); /** * Hashes the password. * * @param string $password * @return string The hash */ public function hash($password); }