C# Class Pdelvo.Minecraft.Network.ProtocolCryptography

Mostrar archivo Open project: pdelvo/Pdelvo.Minecraft

Public Methods

Method Description
JavaHexDigest ( byte data ) : string

Produces a Java-style SHA-1 hex digest of the given data.

Private Methods

Method Description
GetHexString ( byte p ) : string

Converts the given n-bit little-endian unsigned number into lowercase hexadecimal form.

TwosCompliment ( byte p ) : byte[]

Given an array that represents an n-bit little-endian signed number, the two's compliment (negation) is produced.

Method Details

JavaHexDigest() public static method

Produces a Java-style SHA-1 hex digest of the given data.
public static JavaHexDigest ( byte data ) : string
data byte
return string