C# Class OpenStory.Cryptography.CustomCrypto

Provides encryption and decryption static methods for the MapleStory custom data transformation.
Datei anzeigen Open project: shoftee/OpenStory Class Usage Examples

Public Methods

Method Description
Decrypt ( byte data ) : void

Decrypts an array in-place.

The array given in data will be modified.

Encrypt ( byte data ) : void

Encrypts an array in-place.

The array given in data will be modified.

Private Methods

Method Description
EvenDecryptTransform ( byte data, int length, byte lengthByte ) : void

Performs the decryption transform for the even case.

EvenEncryptTransform ( byte data, int length, byte lengthByte ) : void

Performs the encryption transform for the even case.

OddDecryptTransform ( byte data, int length, byte lengthByte ) : void

Performs the decryption transform for the odd case.

OddEncryptTransform ( byte data, int length, byte lengthByte ) : void

Performs the encryption transform for the odd case.

RollLeft ( byte b, int count ) : byte

Performs a bit-wise left roll on a byte.

RollRight ( byte b, int count ) : byte

Performs a bit-wise right roll on a byte.

Method Details

Decrypt() public static method

Decrypts an array in-place.
The array given in data will be modified.
Thrown if is .
public static Decrypt ( byte data ) : void
data byte The array to decrypt.
return void

Encrypt() public static method

Encrypts an array in-place.
The array given in data will be modified.
Thrown if is .
public static Encrypt ( byte data ) : void
data byte The array to encrypt.
return void