C# Class MGDF.GamesManager.Common.Cryptography

Mostrar archivo Open project: mrsharpoblunto/MGDF

Public Methods

Method Description
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

Method Details

Authenticate() public static method

public static Authenticate ( string hmac, string messageTimestamp, string secretKey, int maxTimeDifference ) : bool
hmac string
messageTimestamp string
secretKey string
maxTimeDifference int
return bool

Authenticate() public static method

public static Authenticate ( string hmac, string messageTimestamp, string cnonce, string secretKey, int maxTimeDifference ) : bool
hmac string
messageTimestamp string
cnonce string
secretKey string
maxTimeDifference int
return bool

GenerateHMac() public static method

public static GenerateHMac ( string secretKey, System.DateTime messageTimestamp ) : string
secretKey string
messageTimestamp System.DateTime
return string

GenerateHMac() public static method

public static GenerateHMac ( string secretKey, string contentMd5, System.DateTime messageTimestamp ) : string
secretKey string
contentMd5 string
messageTimestamp System.DateTime
return string

GenerateHMac() public static method

public static GenerateHMac ( string secretKey, string cnonce, string messageTimestamp ) : string
secretKey string
cnonce string
messageTimestamp string
return string

GenerateTimestamp() public static method

public static GenerateTimestamp ( System.DateTime messageTimestamp ) : string
messageTimestamp System.DateTime
return string

ParseTimestamp() public static method

public static ParseTimestamp ( string messageTimestamp ) : System.DateTime
messageTimestamp string
return System.DateTime