C# Class BF2Statistics.Gamespy.GamespyUtils

Afficher le fichier Open project: BF2Statistics/ControlCenter Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Decodes a Gamespy encoded password
public static DecodePassword ( string Password ) : string
Password string
Résultat string

EncodePassword() public static méthode

Encodes a password to Gamespy format
public static EncodePassword ( string Password ) : string
Password string
Résultat string

GsPassEncode() public static méthode

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