C# Класс OpenStory.Cryptography.LoginCrypto

Provides methods for the legacy login password encryption.
Показать файл Открыть проект

Открытые методы

Метод Описание
GeneratePatchLocation ( short version, byte subversion, bool remove ) : int

Generates an integer for the "patch location" value sent during handshake.

GetMd5HashString ( string str, bool lowercase = false ) : string

Returns an MD5 hash string for a given string.

RsaEncryptPassword ( string password, RSAParameters parameters ) : string

Returns an RSA-encrypted MD5 hash of the given password, using the given RSAParameters.

Приватные методы

Метод Описание
GetRsaWithParameters ( RSAParameters parameters ) : RSA

Описание методов

GeneratePatchLocation() публичный статический Метод

Generates an integer for the "patch location" value sent during handshake.
public static GeneratePatchLocation ( short version, byte subversion, bool remove ) : int
version short The game version.
subversion byte The game sub-version.
remove bool Whether to remove. Something.
Результат int

GetMd5HashString() публичный статический Метод

Returns an MD5 hash string for a given string.
public static GetMd5HashString ( string str, bool lowercase = false ) : string
str string The string to hash.
lowercase bool Whether to return lowercase hex digits or not. Default value is .
Результат string

RsaEncryptPassword() публичный статический Метод

Returns an RSA-encrypted MD5 hash of the given password, using the given RSAParameters.
public static RsaEncryptPassword ( string password, RSAParameters parameters ) : string
password string The password string to encrypt.
parameters System.Security.Cryptography.RSAParameters The parameters to use for the encryption.
Результат string