IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Crypt.HashUtilities Class Reference

Public Types

enum  HashAlgorithms {
  HashAlgorithms.MD5, HashAlgorithms.SHA, HashAlgorithms.SHA1, HashAlgorithms.SHA256,
  HashAlgorithms.SHA384
}
 

Static Public Member Functions

static byte[] ToASCIIByteArray (string characters)
 Converts string to an AscII Byte array. More...
 
static byte[] ToUnicodeByteArray (string characters)
 Converts string to an Unicode Byte array. More...
 
static string FromASCIIByteArray (byte[] characters)
 
static string FromUnicodeByteArray (byte[] characters)
 
static bool ValidateHashCode (string p_hash_algorithm, string p_hash_string, byte[] p_data)
 
static void Test ()
 

Static Private Member Functions

static byte[] ComputeHash (string HashAlgorithmName, string Str)
 
static string ComputeHashHexString (string HashAlgorithmName, string Str)
 
static string HashToHexString (byte[] xHashCode)
 
static byte[] ParseHashCodeString (string p_hash_code_string)
 
static bool CompareHashCodes (byte[] x_hash_code1, byte[] x_hash_code2)
 

Member Enumeration Documentation

Enumerator
MD5 
SHA 
SHA1 
SHA256 
SHA384 

Member Function Documentation

static byte [] IG.Crypt.HashUtilities.ComputeHash ( string  HashAlgorithmName,
string  Str 
)
inlinestaticprivate
static string IG.Crypt.HashUtilities.ComputeHashHexString ( string  HashAlgorithmName,
string  Str 
)
inlinestaticprivate
static string IG.Crypt.HashUtilities.HashToHexString ( byte[]  xHashCode)
inlinestaticprivate
static byte [] IG.Crypt.HashUtilities.ToASCIIByteArray ( string  characters)
inlinestatic

Converts string to an AscII Byte array.

static byte [] IG.Crypt.HashUtilities.ToUnicodeByteArray ( string  characters)
inlinestatic

Converts string to an Unicode Byte array.

static string IG.Crypt.HashUtilities.FromASCIIByteArray ( byte[]  characters)
inlinestatic
static string IG.Crypt.HashUtilities.FromUnicodeByteArray ( byte[]  characters)
inlinestatic
static byte [] IG.Crypt.HashUtilities.ParseHashCodeString ( string  p_hash_code_string)
inlinestaticprivate
static bool IG.Crypt.HashUtilities.CompareHashCodes ( byte[]  x_hash_code1,
byte[]  x_hash_code2 
)
inlinestaticprivate
static bool IG.Crypt.HashUtilities.ValidateHashCode ( string  p_hash_algorithm,
string  p_hash_string,
byte[]  p_data 
)
inlinestatic

The documentation for this class was generated from the following file: