C# Class withSIX.Core.Tools.HashEncryptionTools

Datei anzeigen Open project: SIXNetworks/withSIX.Desktop

Public Methods

Method Description
GetBufferSize ( FileStream fs ) : int
MD5FileHash ( IAbsoluteFilePath fileName ) : string
MD5Hash ( string data ) : string
SHA1FileHash ( IAbsoluteFilePath fileName ) : string
SHA256FileHash ( string fileName ) : string
SHA256Hash ( string data ) : string
SHA384Hash ( string data ) : string
SHA512Hash ( string data ) : string

Private Methods

Method Description
GetHash ( byte hash ) : string

Method Details

GetBufferSize() public method

public GetBufferSize ( FileStream fs ) : int
fs System.IO.FileStream
return int

MD5FileHash() public method

public MD5FileHash ( IAbsoluteFilePath fileName ) : string
fileName IAbsoluteFilePath
return string

MD5Hash() public method

public MD5Hash ( string data ) : string
data string
return string

SHA1FileHash() public method

public SHA1FileHash ( IAbsoluteFilePath fileName ) : string
fileName IAbsoluteFilePath
return string

SHA256FileHash() public method

public SHA256FileHash ( string fileName ) : string
fileName string
return string

SHA256Hash() public method

public SHA256Hash ( string data ) : string
data string
return string

SHA384Hash() public method

public SHA384Hash ( string data ) : string
data string
return string

SHA512Hash() public method

public SHA512Hash ( string data ) : string
data string
return string