C# Class withSIX.Core.Presentation.Assemblies.HashTool

Show file Open project: SIXNetworks/withSIX.Desktop

Public Methods

Method Description
SHA1FileHash ( string fileName ) : string
SHA1StreamHash ( Stream stream ) : string

Private Methods

Method Description
GetBufferSize ( Stream fs ) : int
GetHash ( byte hash ) : string

Method Details

SHA1FileHash() public static method

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

SHA1StreamHash() public static method

public static SHA1StreamHash ( Stream stream ) : string
stream Stream
return string