MD5Password Class Reference
MD5-hash password encryption and validation routines.
More...
#include <MD5Password.h++>
List of all members.
|
Static Public Member Functions |
| static String | encrypt (const String &password) throw () |
| | Encrypt a password with an MD5 hash.
|
| static bool | validate (const String &password, const String &ciphertext) throw () |
| | Validate an MD5-hash password.
|
Detailed Description
MD5-hash password encryption and validation routines.
- Author:
- Mark Lindner
Member Function Documentation
| String encrypt |
( |
const String & |
password |
) |
throw () [static] |
Encrypt a password with an MD5 hash.
- Parameters:
-
| password | The plaintext password. |
- Returns:
- The encrypted password.
| bool validate |
( |
const String & |
password, |
|
|
const String & |
ciphertext | |
|
) |
| | throw () [static] |
Validate an MD5-hash password.
- Parameters:
-
| password | A plaintext password. |
| ciphertext | The ciphertext form of the password to validate against. |
- Returns:
- true if the passwords match, false otherwise.
The documentation for this class was generated from the following files: