Redeem Code Storage and Verification via Random Value Indexing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for generating and storing redeem codes face inefficiencies due to potential repetition, high storage requirements, and low verification efficiency, especially when dealing with large quantities, and struggle to maintain a controlled success rate for cracking codes.

Innovation Solution

A method and apparatus that map a number pair consisting of a random value and its generation index to a string, allowing for obfuscation to generate redeem codes, and store only the random value, enabling efficient verification by reversing the mapping process and using a redeem index table for storage and verification.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If all redeem codes are completely saved in storage space (database), then verification can be performed by searching the database, but a large amount of storage space is occupied

Engineering Contradiction:
Improveverification accuracyVSAvoidstorage space
Core Design Contradiction:
ReliabilityVSVolume of stationary object

Solution Approach 1:

The patent extracts only the essential verification information (hash values or key features) from the complete redeem codes and stores only these extracted elements in the database. This allows verification to be performed without storing the entire redeem code dataset, significantly reducing storage space while maintaining verification capability.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

Instead of storing and searching the original redeem codes directly, the patent creates simplified copies (hash values or feature representations) that capture the essential verification properties. These copies are stored in the database and used for verification, reducing storage requirements while preserving the core verification function.

Inventive Principle:
Principle #26Copying

2Ease of manufacture

If redeem codes are generated using a random algorithm, then code generation is simple, but repetition may occur resulting in low efficiency

Engineering Contradiction:
Improvecode generation simplicityVSAvoidcode generation efficiency
Core Design Contradiction:
Ease of manufactureVSProductivity

Solution Approach 1:

The patent implements a feedback mechanism where generated redeem codes are checked against previously generated codes to detect repetitions. When a repetition is detected, the system provides feedback to regenerate a unique code. This ensures code uniqueness while maintaining the simplicity of random generation, improving overall generation efficiency.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent performs preliminary checks during the code generation process to identify potential repetitions before they cause problems. By proactively detecting and preventing repetitions during generation rather than after, the system maintains high efficiency while ensuring code uniqueness.

Inventive Principle:
Principle #10Preliminary action

3Volume of stationary object

If the number of digits of a redeem code are reduced to save storage space, then storage space is reduced, but the success rate of cracking a redeem code cannot be controlled

Engineering Contradiction:
Improvestorage spaceVSAvoidcracking success rate control
Core Design Contradiction:
Volume of stationary objectVSReliability

Solution Approach 1:

The patent changes the parameter representation of redeem codes by using hash functions or encoding schemes that maintain sufficient entropy and security properties even with reduced digit counts. This allows storage space to be reduced while preserving the cryptographic properties needed to control cracking success rates.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent applies different quality levels to different parts of the redeem code system. The stored representation uses reduced digits for space efficiency, while the generation and verification processes maintain full security properties. This local differentiation allows space reduction without compromising security control.

Inventive Principle:
Principle #3Local quality

4Reliability

If a database is searched in a manner of full-text comparison to verify a redeem code, then verification is thorough, but a large amount of data to be searched resulting in low efficiency

Engineering Contradiction:
Improveverification thoroughnessVSAvoidverification efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent extracts key verification features (such as hash values) from the complete redeem codes and stores only these extracted elements in the database. During verification, only these extracted features are searched and compared, dramatically reducing the amount of data to be searched while maintaining verification thoroughness for the essential properties.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent segments the verification process into two parts: storing only the essential verification features (hash values) in the database, and performing verification by comparing only these segmented features. This segmentation reduces the search space from entire redeem codes to just their verification features, improving efficiency while maintaining thoroughness.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS10176304B2Method and apparatus for storing redeem code, and method and apparatus for verifying redeem code
Publication Date: 2019.01.08 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US10176304B2 patent drawing
  • US10176304B2 patent drawing
  • US10176304B2 patent drawing

AI summary

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.