C# Class Zazzles.Data.Hash

Handle all encryption/decryption
Afficher le fichier Open project: FOGProject/zazzles

Méthodes publiques

Méthode Description
MD5 ( byte data ) : string

Creates an md5 hash of bytes

MD5 ( string filePath ) : string

Creates an md5 hash of a file

SHA1 ( byte data ) : string

Creates a sha1 hash of bytes

SHA1 ( string filePath ) : string

Creates a sha1 hash of a file

SHA256 ( byte data ) : string

Creates a sha256 hash of bytes

SHA256 ( string filePath ) : string

Creates a sha256 hash of a file

SHA384 ( byte data ) : string

Creates a sha384 hash of bytes

SHA384 ( string filePath ) : string

Creates a sha384 hash of a file

SHA512 ( byte data ) : string

Creates a sha512 hash of bytes

SHA512 ( string filePath ) : string

Creates a sha512 hash of a file

Private Methods

Méthode Description
HashBytes ( HashAlgorithm alg, byte data ) : string

Hash a set of bytes with a given algorithm, digested to hex form

HashFile ( HashAlgorithm alg, string filePath ) : string

Hash a file with a given algorithm, digested to hex form

Method Details

MD5() public static méthode

Creates an md5 hash of bytes
public static MD5 ( byte data ) : string
data byte The bytes to hash
Résultat string

MD5() public static méthode

Creates an md5 hash of a file
public static MD5 ( string filePath ) : string
filePath string The path to the file
Résultat string

SHA1() public static méthode

Creates a sha1 hash of bytes
public static SHA1 ( byte data ) : string
data byte The bytes to hash
Résultat string

SHA1() public static méthode

Creates a sha1 hash of a file
public static SHA1 ( string filePath ) : string
filePath string The path to the file
Résultat string

SHA256() public static méthode

Creates a sha256 hash of bytes
public static SHA256 ( byte data ) : string
data byte The bytes to hash
Résultat string

SHA256() public static méthode

Creates a sha256 hash of a file
public static SHA256 ( string filePath ) : string
filePath string The path to the file
Résultat string

SHA384() public static méthode

Creates a sha384 hash of bytes
public static SHA384 ( byte data ) : string
data byte The bytes to hash
Résultat string

SHA384() public static méthode

Creates a sha384 hash of a file
public static SHA384 ( string filePath ) : string
filePath string The path to the file
Résultat string

SHA512() public static méthode

Creates a sha512 hash of bytes
public static SHA512 ( byte data ) : string
data byte The bytes to hash
Résultat string

SHA512() public static méthode

Creates a sha512 hash of a file
public static SHA512 ( string filePath ) : string
filePath string The path to the file
Résultat string