Two-Dimensional Code Encryption via Error Correction Blocks

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Two-dimensional codes, widely used due to their simplicity and convenience, pose significant security risks in applications like mobile terminal scanning and payment, leading to user information leakage and property loss.

Innovation Solution

A method for generating and identifying two-dimensional codes that involves encrypting data codewords using a key management system and error correction blocks, ensuring secure data transmission by determining the number of error correction blocks and using appropriate construction modes for encoding and decoding.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If two-dimensional codes are used for simple and convenient applications, then ease of operation is improved, but security is worsened due to information leakage risks

Engineering Contradiction:
Improveease of operationVSAvoidsecurity
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent applies preliminary action by encrypting the data codeword sequence before generating the two-dimensional code. The encryption is performed in advance using a key management system, so that when the code is scanned, the data is already protected. This resolves the contradiction by maintaining the simplicity of scanning (ease of operation) while adding security through pre-encryption.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an intermediary element - the encryption key and error correction blocks - between the original data and the two-dimensional code. This intermediary layer protects the data during transmission and scanning, allowing the code to remain easy to use while improving security. The key management system acts as a mediator that enables secure data transmission without complicating the user experience.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If encryption is added to two-dimensional codes, then security is improved, but device complexity is worsened

Engineering Contradiction:
ImprovesecurityVSAvoiddevice complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent applies segmentation by dividing the data into data codeword sequences and error correction blocks. This segmentation allows the encryption process to be broken down into manageable parts, reducing the overall complexity. The error correction blocks are separately generated and combined with the encrypted data, making the system more modular and easier to implement despite the added security features.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent uses parameter changes by adjusting the number of error correction blocks based on the security requirements and data length. This allows the system to adapt the level of complexity dynamically - using more error correction blocks when higher security is needed and fewer when basic protection suffices. This flexible approach to parameter adjustment helps balance security improvements with device complexity management.

Inventive Principle:
Principle #35Parameter changes

3Reliability

If error correction blocks are used, then reliability is improved, but manufacturing precision is worsened due to complex construction modes

Engineering Contradiction:
ImprovereliabilityVSAvoidmanufacturing precision
Core Design Contradiction:
ReliabilityVSManufacturing precision

Solution Approach 1:

The patent applies preliminary action by pre-calculating and storing error correction blocks before generating the two-dimensional code. These error correction blocks are prepared in advance based on the data length and security requirements, allowing the main encoding process to simply combine them with the encrypted data. This pre-preparation reduces the complexity of the actual code generation process while maintaining high reliability through robust error correction capabilities.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11263416B2Two-dimensional code generation and identification
Publication Date: 2022.03.01 BEIJING SANKUAI ONLINE TECH CO LTD
  • US11263416B2 patent drawing
  • US11263416B2 patent drawing
  • US11263416B2 patent drawing

AI summary

A two-dimensional code generation method and apparatus, a two-dimensional code identification method and apparatus, an electronic device, and a storage medium are provided. The method includes generating a data codeword sequence according to input information, encrypting the data codeword sequence to generate an encrypted codeword sequence, determining a number of error correction blocks, and generating the two-dimensional code from the data codeword sequence and the encrypted codeword sequence according to a construction mode corresponding to the number of error correction blocks.