Craig's Utility Library  4.0 Beta
Utilities.IO.Encryption.BaseClasses.HasherBase Class Reference

Hasher base class More...

Inheritance diagram for Utilities.IO.Encryption.BaseClasses.HasherBase:
Utilities.IO.Encryption.Interfaces.IHasher Utilities.IO.Encryption.Default.Hash

Public Member Functions

bool CanHandle (string Algorithm)
 Can this handle the algorithm specified More...
 
byte[] Hash (byte[] Data, string Algorithm)
 Hashes the data More...
 

Protected Member Functions

 HasherBase ()
 Constructor More...
 
HashAlgorithm GetAlgorithm (string Algorithm)
 Gets the hash algorithm that the system uses More...
 

Properties

abstract string Name [get]
 Name More...
 
IDictionary< string, Func< HashAlgorithm > > ImplementedAlgorithms [get]
 Algorithms this implements More...
 
- Properties inherited from Utilities.IO.Encryption.Interfaces.IHasher
string Name [get]
 Hasher name More...
 

Detailed Description

Hasher base class

Definition at line 33 of file HasherBase.cs.

Constructor & Destructor Documentation

Utilities.IO.Encryption.BaseClasses.HasherBase.HasherBase ( )
protected

Constructor

Definition at line 38 of file HasherBase.cs.

Member Function Documentation

bool Utilities.IO.Encryption.BaseClasses.HasherBase.CanHandle ( string  Algorithm)

Can this handle the algorithm specified

Parameters
AlgorithmThe algorithm name
Returns
True if it can, false otherwise

Implements Utilities.IO.Encryption.Interfaces.IHasher.

Definition at line 58 of file HasherBase.cs.

HashAlgorithm Utilities.IO.Encryption.BaseClasses.HasherBase.GetAlgorithm ( string  Algorithm)
protected

Gets the hash algorithm that the system uses

Parameters
AlgorithmAlgorithm
Returns
The hash algorithm

Definition at line 90 of file HasherBase.cs.

byte [] Utilities.IO.Encryption.BaseClasses.HasherBase.Hash ( byte[]  Data,
string  Algorithm 
)

Hashes the data

Parameters
DataData to hash
AlgorithmAlgorithm to use
Returns
The hashed version of the data

Implements Utilities.IO.Encryption.Interfaces.IHasher.

Definition at line 69 of file HasherBase.cs.

Property Documentation

IDictionary<string, Func<HashAlgorithm> > Utilities.IO.Encryption.BaseClasses.HasherBase.ImplementedAlgorithms
getprotected

Algorithms this implements

Definition at line 51 of file HasherBase.cs.

abstract string Utilities.IO.Encryption.BaseClasses.HasherBase.Name
get

Name

Definition at line 46 of file HasherBase.cs.


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