org.zenmagick.core.services.authentication.ZMAuthentication
\core\services\authentication\ZMAuthentication.php at line 31
Interface ZMAuthentication
ZMAuthentication
public interface ZMAuthentication
- Author:
- DerManoMann
- Version:
- $Id: ZMAuthentication.php 2610 2009-11-20 02:45:25Z 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 40
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 49
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.
Provider of authentication service.