C# Class BF2Statistics.Gamespy.GamespyUtils

ファイルを表示 Open project: BF2Statistics/ControlCenter Class Usage Examples

Public Methods

Method Description
DecodePassword ( string Password ) : string

Decodes a Gamespy encoded password

EncodePassword ( string Password ) : string

Encodes a password to Gamespy format

GsPassEncode ( byte pass ) : byte[]

Gamespy's XOR method to encrypt and decrypt a password

Private Methods

Method Description
Gslame ( int num ) : int

Not exactly sure what this does, but i know its used to reverse the encryption and decryption of a string

Method Details

DecodePassword() public static method

Decodes a Gamespy encoded password
public static DecodePassword ( string Password ) : string
Password string
return string

EncodePassword() public static method

Encodes a password to Gamespy format
public static EncodePassword ( string Password ) : string
Password string
return string

GsPassEncode() public static method

Gamespy's XOR method to encrypt and decrypt a password
public static GsPassEncode ( byte pass ) : byte[]
pass byte
return byte[]