Class PublicExtensions
Some extension methods provided by RageCoop
Inheritance
PublicExtensions
Assembly: RageCoop.Core.dll
Syntax
public static class PublicExtensions
Methods
GetSHA256Hash(String)
Get a SHA256 hashed byte array of the input string, internally used to hash password at client side.
Declaration
public static byte[] GetSHA256Hash(this string inputString)
Parameters
Type |
Name |
Description |
String |
inputString |
|
Returns
ToHexString(Byte[])
Convert a byte array to hex-encoded string, internally used to trigger handshake event
Declaration
public static string ToHexString(this byte[] data)
Parameters
Type |
Name |
Description |
Byte[] |
data |
|
Returns
ToIP(String)
Convert a string to IP address
Declaration
public static IPAddress ToIP(this string ip)
Parameters
Type |
Name |
Description |
String |
ip |
|
Returns