Location: PHPKode > projects > Openmailadmin > openmailadmin-1.0.1/inc/lib/IPasswordStrategy.php
<?php
/**
 * Interface to various algorithms for ciphering passwords.
 *
 * @pattern 		Strategy
 * @see_also 		Password
 */
interface IPasswordStrategy
{
	/**
	 * @return	String		with ciphered password.
	 */
	public function cipher($plaintext);
	/**
	 * @return 	boolean 	True if plaintext matches hashed password, else False.
	 */
	public function equals($hashed, $plaintext);

}
?>
Return current item: Openmailadmin