libcommonc++  0.7
MD5Password Class Reference

MD5-hash password encryption and validation routines. More...

#include <MD5Password.h++>

Static Public Member Functions

static String encrypt (const String &password)
 Encrypt a password with an MD5 hash. More...
 
static bool validate (const String &password, const String &ciphertext)
 Validate an MD5-hash password. More...
 

Detailed Description

MD5-hash password encryption and validation routines.

Author
Mark Lindner

Member Function Documentation

◆ encrypt()

String encrypt ( const String password)
static

Encrypt a password with an MD5 hash.

Parameters
passwordThe plaintext password.
Returns
The encrypted password.

◆ validate()

bool validate ( const String password,
const String ciphertext 
)
static

Validate an MD5-hash password.

Parameters
passwordA plaintext password.
ciphertextThe 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: