Class XSha1
Provides an implementation of Battle.net's "broken" (nonstandard) SHA-1 implementation. This class cannot be inherited.
Inheritance
System.Object
XSha1
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: MBNCSUtil
Assembly: MBNCSUtil.dll
Syntax
public static class XSha1
Remarks
This class does not derive from the standard .NET System.Security.Cryptography.SHA1 class, and also does not provide adequate security for independent security solutions. See the System.Security.Cryptography namespace for more information.
Methods
| Improve this Doc View SourceCalculateHash(Byte[])
Calculates the "broken" SHA-1 hash used by Battle.net.
Declaration
public static byte[] CalculateHash(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | The data to hash. |
Returns
Type | Description |
---|---|
System.Byte[] | A 20-byte array containing the hashed result. |