ZenMagick 0.9.6


org.zenmagick.authentication.ZMAuthentication

Interface ZMAuthentication

ZMAuthentication

public interface ZMAuthentication

Provider of authentication service.

Author:
DerManoMann
Version:
$Id: ZMAuthentication.php 1966 2009-02-14 10:52:50Z dermanomann $

Method Summary
string

encryptPassword(string plaintext, string salt)

Encrypt a given password.

boolean

validatePassword(string plaintext, string encrypted)

Validate the given clear text password against the encrypted one.

Method Detail

encryptPassword

public string encryptPassword(string plaintext, string salt)

Encrypt a given password.

Parameters:
plaintext - The plain text password.
salt - Optional salt to improve encryption; default is null.
Returns:
The encrypted password.

validatePassword

public boolean validatePassword(string plaintext, string encrypted)

Validate the given clear text password against the encrypted one.

Parameters:
plaintext - The plain text password.
encrypted - The encrypted password.
Returns:
true if the plain text password matches the encrypted, false if not.

ZenMagick 0.9.6