Title: passwd

TITLE

AUTHOR
Version 1.0
CREATEDATE

Table of Contents

Table of contents

passwd Namespace Index
passwd Package List
Here are the packages with brief descriptions (if available):Rsdn  	pagenum
System  	pagenum
System.Diagnostics  	pagenum
System.IO  	pagenum
System.Runtime.InteropServices  	pagenum
System.Security.Cryptography  	pagenum
System.Text  	pagenum

passwd Class Index
passwd Class List
Here are the classes, structs, unions and interfaces with brief descriptions:
Rsdn.Password  	pagenum

passwd File Index
passwd File List
Here is a list of all files with brief descriptions:
D:/Work/DMP Working Copy/Logi/passwd/Password.cs  	pagenum

passwd Namespace Documentation
Package Rsdn

Classes
class Password

Package System

Package System.Diagnostics

Package System.IO

Package System.Runtime.InteropServices

Package System.Security.Cryptography

Package System.Text

passwd Class Documentation
Rsdn.Password Class Reference
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]
Private Member Functions
byte[] HashPassword (char[] clearText)
Hashes given plain text password using password correction (_salt). 

Static Private Member Functions
static byte[] GenerateRandom (int size)

Returns:
Random bytes array 

Private Attributes
byte[] _salt
byte[] _hash

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 byte [] Rsdn.Password.GenerateRandom (int size) [static, private]

Returns:
Random bytes array 

Parameters:
size Array length
byte [] Rsdn.Password.HashPassword (char[] clearText) [private]
Hashes given plain text password using password correction (_salt). 

Parameters:
clearText Plain text password
Returns:
Password hash
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 

Member Data Documentation
byte [] Rsdn.Password._salt [private]
byte [] Rsdn.Password._hash [private]

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:
D:/Work/DMP Working Copy/Logi/passwd/Password.cs

passwd File Documentation
D:/Work/DMP Working Copy/Logi/passwd/Password.cs File Reference
Namespaces
namespace Rsdn
namespace System
namespace System.Diagnostics
namespace System.IO
namespace System.Security.Cryptography
namespace System.Text
namespace System.Runtime.InteropServices
Classes
class Rsdn.Password

Index
INDEX