Rsdn.Password Class Reference

List of all members.

Public Member Functions

 Password (byte[] salt, byte[] hash)
 Inits object using password correction and password hash.
 Password (string salt, string hash)
 
Parameters:
hash Base64-encoded password hash

 Password (char[] clearText)
 Password ()
 Empty constructor, generates random password (but we'll never know what ;).
void ResetPassword (char[] clearText)
 Reinitializes password class object using plain password as an argument.
bool Verify (char[] clearText)
 Checks whether given plain text password matches to password correction and hash stored in the object.

Static Public Member Functions

static char[] Generate ()
 
Returns:
Generated password as char array

static void RegisterFunction (Type t)
 COM interop registering function.
static void UnregisterFunction (Type t)
 COM interop unregistering function.

Properties

string Salt [get]
byte[] RawSalt [get]
string Hash [get]
byte[] RawHash [get]

Detailed Description

The class that encapsulates user password


Constructor & Destructor Documentation

Rsdn.Password.Password ( byte[]  salt,
byte[]  hash 
)

Inits object using password correction and password hash.

Parameters:
salt Password correction
hash Password hash

Rsdn.Password.Password ( string  salt,
string  hash 
)

Parameters:
hash Base64-encoded password hash

Parameters:
salt Base64-encoded password correction

Rsdn.Password.Password ( char[]  clearText  ) 

Parameters:
clearText Plain text password (not crypted)
For security reasons calling process should zeroize this array as soon as possible

Rsdn.Password.Password (  ) 

Empty constructor, generates random password (but we'll never know what ;).


Member Function Documentation

void Rsdn.Password.ResetPassword ( char[]  clearText  ) 

Reinitializes password class object using plain password as an argument.

Parameters:
clearText Palin text password

bool Rsdn.Password.Verify ( char[]  clearText  ) 

Checks whether given plain text password matches to password correction and hash stored in the object.

Parameters:
clearText Plain text password
Returns:
Method returns true if given password match object password correction and hash, and false - otherwise

static char [] Rsdn.Password.Generate (  )  [static]

Returns:
Generated password as char array

static void Rsdn.Password.RegisterFunction ( Type  t  )  [static]

COM interop registering function.

Parameters:
t 

static void Rsdn.Password.UnregisterFunction ( Type  t  )  [static]

COM interop unregistering function.

Parameters:
t 


Property Documentation

string Rsdn.Password.Salt [get]

Returns password correction as a base64-encoded string

byte [] Rsdn.Password.RawSalt [get]

Returns password correction as a byte array

string Rsdn.Password.Hash [get]

Returns password hash as a base64-encoded string

byte [] Rsdn.Password.RawHash [get]

Returns password hash as a byte array


The documentation for this class was generated from the following file:
Generated on Thu Mar 22 15:19:32 2007 for passwd by  doxygen 1.5.1-20070206