C# Класс MGDF.GamesManager.Common.Cryptography

Показать файл Открыть проект

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

Метод Описание
Authenticate ( string hmac, string messageTimestamp, string secretKey, int maxTimeDifference ) : bool
Authenticate ( string hmac, string messageTimestamp, string cnonce, string secretKey, int maxTimeDifference ) : bool
GenerateHMac ( string secretKey, System.DateTime messageTimestamp ) : string
GenerateHMac ( string secretKey, string contentMd5, System.DateTime messageTimestamp ) : string
GenerateHMac ( string secretKey, string cnonce, string messageTimestamp ) : string
GenerateTimestamp ( System.DateTime messageTimestamp ) : string
ParseTimestamp ( string messageTimestamp ) : System.DateTime

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

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

public static Authenticate ( string hmac, string messageTimestamp, string secretKey, int maxTimeDifference ) : bool
hmac string
messageTimestamp string
secretKey string
maxTimeDifference int
Результат bool

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

public static Authenticate ( string hmac, string messageTimestamp, string cnonce, string secretKey, int maxTimeDifference ) : bool
hmac string
messageTimestamp string
cnonce string
secretKey string
maxTimeDifference int
Результат bool

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

public static GenerateHMac ( string secretKey, System.DateTime messageTimestamp ) : string
secretKey string
messageTimestamp System.DateTime
Результат string

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

public static GenerateHMac ( string secretKey, string contentMd5, System.DateTime messageTimestamp ) : string
secretKey string
contentMd5 string
messageTimestamp System.DateTime
Результат string

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

public static GenerateHMac ( string secretKey, string cnonce, string messageTimestamp ) : string
secretKey string
cnonce string
messageTimestamp string
Результат string

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

public static GenerateTimestamp ( System.DateTime messageTimestamp ) : string
messageTimestamp System.DateTime
Результат string

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

public static ParseTimestamp ( string messageTimestamp ) : System.DateTime
messageTimestamp string
Результат System.DateTime