"Fossies" - the Fresh Open Source Software Archive

Member "openmailadmin-1.0.1/inc/lib/IPasswordStrategy.php" (31 Jul 2006, 383 Bytes) of package /linux/privat/old/openmailadmin-1.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "IPasswordStrategy.php" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 /**
    3  * Interface to various algorithms for ciphering passwords.
    4  *
    5  * @pattern         Strategy
    6  * @see_also        Password
    7  */
    8 interface IPasswordStrategy
    9 {
   10     /**
   11      * @return  String      with ciphered password.
   12      */
   13     public function cipher($plaintext);
   14     /**
   15      * @return  boolean     True if plaintext matches hashed password, else False.
   16      */
   17     public function equals($hashed, $plaintext);
   18 
   19 }
   20 ?>