1.MD5 Signature Algorithm Example:

Step:

  • 1.Sort The Parameter Values In Alphabetical Order From 'a' To 'z'.Signature Is Not Included In The Sorting. Then concatenate The Parameter Values.
  • 2.Concatenate The Concatenated Value From Step 1 With The Agreed Secret (key) To Get The FinalString.
  • 3.Encrypt FinalString Using MD5 Hexadecimal Encryption。
  • 4.Please Confirm The Case Of The Encrypted Value According To The Prompts Of The Relevant Interface.
  • 5.Please Contact The ULU Platform Technical Department To Obtain The Secret (key)。

Example Request Parameters:

{
    "orderNo":"GOOGLE1184043905927725057",
    "channelReceipt":"null",
    "gameId":1,
    "uid":"dh62457163",
    "amount":"9.00",
    "currency":"HKD",
    "extraData":"extraData",
    "payChannel":2,
    "signture":"4f065a34cc964a42f87787e2b44935bc"
}

Process

  • 1.Parameter Sorting:

    "amount":"9.00",
    "channelReceipt":"null",
    "currency":"HKD",
    "extraData":"extraData",
    "gameId":1,
    "payChannel":2,
    "orderNo":"GOOGLE1184043905927725057",
    "uid":"dh62457163",
    
    • 2.Concatenate Sceret To Generate FinalString:
    • The Secret Example Is:sdijalwd12313
    9.00nullHKDextraData12GOOGLE1184043905927725057dh62457163sdijalwd12313
    
  • 3.Encrypt FinalString Using MD5 Hexadecimal Encryption:

    468293A578AC5B11
    

2.SHA256 Signature Algorithm Example:

Step:

  • 1.Sort The Parameter Values In Alphabetical Order From 'a' To 'z'.Signature Is Not Included In The Sorting. Then concatenate The Parameter Values.
  • 2.Use The HMAC-SHA256 Algorithm To HashThe String In Step 1 And Hash The Negotiated Secret Key To Get The Encrypted String.
  • 3.Check Whether The Value Of The Parameter Signature Matches The Encrypted String.

Example Request Parameters:

{
    "uid":"1343444245255643138",
    "roleId":"1001200100001",
    "serverId":"0001",
    "giftCode":"100120giftcode",
    "cdkCode":"eLxksa5m2GP24nH95JSs3",
    "checkFlag":"0",
    "sandbox":"1",
    "signature":"b6befd6b3a3cfaf4aed1034ec13fad4d9c948dddcf5fb2868a06abe65a9faf54"
}

Process

  • 1.Parameter Sorting:

    "cdkCode":"eLxksa5m2GP24nH95JSs3",
    "checkFlag":"0",
    "giftCode":"100120giftcode",
    "roleId":"1001200100001",
    "sandbox":"1",
    "serverId":"0001",
    "uid":"1343444245255643138",
    
    • 2.Concatenate Sceret To Generate FinalString:
eLxksa5m2GP24nH95JSs30100120giftcode1001200100001100011343444245255643138
  • 3.Use The HMAC-SHA256 Algorithm To HashThe String :

    b6befd6b3a3cfaf4aed1034ec13fad4d9c948dddcf5fb2868a06abe65a9faf54
    

results matching ""

    No results matching ""