ZenMagick 0.9.10


org.zenmagick.core.services.authentication\ZMAuthentication
core\services\authentication\ZMAuthentication.php at line 30

Interface ZMAuthentication

ZMAuthentication

public interface ZMAuthentication

Provider of authentication service.

Author:
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

core\services\authentication\ZMAuthentication.php at line 39

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.

core\services\authentication\ZMAuthentication.php at line 48

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.10