Patent ID: 8689339
Filing Date: 2014-04-01
Classification: H04L

Abstract:
1. A method for game data transmission, comprising: acquiring, by a client upon logging into a server, a session key assigned by the server, and launching, by the client, a game program, wherein the session key is generated by shifting bit data containing a client ID of the client and a login time of the client according to a rule, and further inserting bytes and performing a bitwise operation on the bit data; encrypting, by the client, game data generated by the game program with the session key when the game data is to be submitted, and submitting the game data to the server; decrypting and verifying the received game data by the server, and saving the game data if the game data is proved to be valid; applying, by the client, feature conversion to the game data to be submitted to the server before or after encrypting the game data; applying, by the server, reversed feature conversion to the game data received by the server after or before decrypting and verifying the received game data; wherein the encrypting includes generating, by the client, a result digest based on the game data to be submitted, time of submitting the game data and the session key by using an MD5 algorithm, and sending the game data, the time of submitting the game data, the session key and the generated result digest to the server; and wherein the decrypting and verifying includes generating another result digest by the server based on the received game data, the time of submitting the game data by the client and the session key by using the same MD5 algorithm used by the client, comparing the result digest generated by the server with the result digest from the client, and regarding the game data as valid if the two result digests are identical; and when the result digest generated by the server is identical with the result digest from the client, comparing login time of the client with the current time on the server, checking whether the login time of the client is within a predetermined expiration limit, if yes, regarding the received game data as valid, otherwise regarding the received game data as invalid.