org.promotego.interfaces
Interface PasswordHashTool

All Known Implementing Classes:
PlainTextHash, Sha1Hash

public interface PasswordHashTool


Method Summary
 java.lang.String hash(java.lang.String password)
          Hashes the password provided.
 boolean match(java.lang.String hashedPassword, java.lang.String password)
          Compares the hashed password with the plain text password provided.
 

Method Detail

match

boolean match(java.lang.String hashedPassword,
              java.lang.String password)
Compares the hashed password with the plain text password provided.

Parameters:
hashedPassword - A password hashed using this mechanism.
password - A plaintext password to compare to the hashedPassword.
Returns:
True if the password matches the hashed password.

hash

java.lang.String hash(java.lang.String password)
Hashes the password provided.

Parameters:
password - The plaintext password to be hashed.


Copyright © 2007. All Rights Reserved.