发明名称 Method and apparatus for storing redeem code, and method and apparatus for verifying redeem code
摘要 Implementation manners of the present disclosure provide a method and an apparatus for storing a redeem code and a method and an apparatus for verifying a redeem code. The method for storing a redeem code includes: generating a random value, and determining an index of the random value according to an order in which the random value is generated; generating a number pair according to the random value and the index of the random value, mapping the number pair to a string, and generating a redeem code according to the string; and determining a storage location of the random value according to the index of the random value, and saving the random value at the determined storage location.
申请公布号 US9619657(B2) 申请公布日期 2017.04.11
申请号 US201314646953 申请日期 2013.10.09
申请人 Tencent Technology (Shenzhen) Company Limited 发明人 Zhou Jian
分类号 G06F17/30;H04N7/16;G06F21/60;G06Q30/02 主分类号 G06F17/30
代理机构 Harness, Dickey & Pierce, P.L.C. 代理人 Harness, Dickey & Pierce, P.L.C.
主权项 1. A method for storing a redeem code, the method comprising: generating a random value, and determining an index of the random value according to an order in which the random value is generated; generating a number pair according to the random value and the index of the random value, mapping the number pair to a string, and generating a redeem code according to the string; and determining a storage location of the random value according to the index of the random value, and saving the random value at the determined storage location; wherein the generating a redeem code according to the string comprises: performing obfuscation processing on the string, to generate the redeem code; and wherein the method further comprises: determining an expected generation quantity of the redeem code, and determining a number of digits of the index according to the expected generation quantity of the redeem code; and determining a probability threshold value of cracking the redeem code, and determining the number of digits of the random value according to the probability threshold value of cracking the redeem code; and the generating a random value, and determining an index of the random value according to an order in which the random value is generated comprises: generating the random value according to the number of digits of the random value, and determining the index of the random value according to the order in which the random value is generated and the number of digits of the index.
地址 Shenzhen, Guangdong CN