C# 클래스 OpenStory.Cryptography.LoginCrypto

Provides methods for the legacy login password encryption.
파일 보기 프로젝트 열기: shoftee/OpenStory

공개 메소드들

메소드 설명
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