C# Class LoveSeat.DocUpdater.Sha1Util

显示文件 Open project: soitgoes/LoveSeat Class Usage Examples

Public Methods

Method Description
HexStringFromBytes ( byte bytes ) : string

Convert an array of bytes to a string of hex digits

Sha1HashStringForUtf8String ( string s ) : string

Compute hash for string encoded as UTF8

Method Details

HexStringFromBytes() public static method

Convert an array of bytes to a string of hex digits
public static HexStringFromBytes ( byte bytes ) : string
bytes byte array of bytes
return string

Sha1HashStringForUtf8String() public static method

Compute hash for string encoded as UTF8
public static Sha1HashStringForUtf8String ( string s ) : string
s string String to be hashed
return string