JP2021513141A - Generation and identification of 2D barcodes - Google Patents

Generation and identification of 2D barcodes Download PDF

Info

Publication number
JP2021513141A
JP2021513141A JP2020540589A JP2020540589A JP2021513141A JP 2021513141 A JP2021513141 A JP 2021513141A JP 2020540589 A JP2020540589 A JP 2020540589A JP 2020540589 A JP2020540589 A JP 2020540589A JP 2021513141 A JP2021513141 A JP 2021513141A
Authority
JP
Japan
Prior art keywords
code word
error correction
word sequence
dimensional bar
encrypted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2020540589A
Other languages
Japanese (ja)
Inventor
崇霊 楊
崇霊 楊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Publication of JP2021513141A publication Critical patent/JP2021513141A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K1/00Methods or arrangements for marking the record carrier in digital fashion
    • G06K1/12Methods or arrangements for marking the record carrier in digital fashion otherwise than by punching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1473Methods for optical code recognition the method including quality enhancement steps error correction

Abstract

2次元バーコードの生成方法及び装置、2次元バーコードの識別方法及び装置、電子機器及び記憶媒体に関する。該方法は、入力情報に基づいてデータコードワードシーケンスを生成するステップ(S110)と、前記データコードワードシーケンスに対して暗号化処理を行うことで、暗号化コードワードシーケンスを生成するステップ(S120)と、誤り訂正ブロックの数を決定するステップ(S130)と、前記誤り訂正ブロックの数に対応する構築方式により、前記データコードワードシーケンス及び前記暗号化コードワードシーケンスから2次元バーコードを生成するステップ(S140)とを含む。 The present invention relates to a method and device for generating a two-dimensional bar code, a method and device for identifying a two-dimensional bar code, an electronic device, and a storage medium. The method includes a step of generating a data code word sequence based on input information (S110) and a step of generating an encrypted code word sequence by performing an encryption process on the data code word sequence (S120). A step of determining the number of error correction blocks (S130) and a step of generating a two-dimensional bar code from the data code word sequence and the encrypted code word sequence by a construction method corresponding to the number of error correction blocks. (S140) and is included.

Description

<関連出願の相互参照>
本特許は、2018年2月7日に提出された、出願番号が201810123416.0であり、発明名称が「2次元バーコードの生成方法及び装置、2次元バーコードの識別方法及び装置」である中国特許出願の優先権を主張し、その出願の全体が引用される方式で本願に組み込まれる。
<Cross-reference of related applications>
This patent is filed on February 7, 2018, with an application number of 2018101123416.0 and an invention name of "two-dimensional bar code generation method and device, two-dimensional bar code identification method and device". The priority of a Chinese patent application is claimed and incorporated into the present application in a manner in which the entire application is cited.

本開示は、コンピュータの技術分野に関し、具体的には、2次元バーコードの生成及び識別に関する。 The present disclosure relates to the technical field of a computer, and specifically to the generation and identification of a two-dimensional bar code.

インターネット技術や通信技術の発展に伴い、2次元バーコードは、簡単さ、利便さの特性により、様々な分野で広く使用されている。ただし、この簡単さ、利便さの特性のため、2次元バーコードは、モバイル端末がウイルスに感染する新しいチャネルになっている。コードスキャニングにより携帯端末にログインしたり支払ったりするなどの応用シナリオでは、ユーザ情報の漏洩や資産の紛失が数多く発生するため、2次元バーコードの使用時のセキュリティには大きなリスクがある。 With the development of Internet technology and communication technology, two-dimensional barcodes are widely used in various fields due to their characteristics of simplicity and convenience. However, due to its simplicity and convenience, 2D barcodes have become a new channel for mobile devices to infect viruses. In application scenarios such as logging in to a mobile terminal or paying by code scanning, many user information leaks and assets are lost, so there is a great risk in security when using a two-dimensional bar code.

本開示は、2次元バーコードの生成方法、2次元バーコードの生成装置、2次元バーコードの識別方法、2次元バーコードの識別装置、電子機器及びコンピュータ読み取り可能な記憶媒体を提供することを目的とする。 The present disclosure provides a two-dimensional bar code generation method, a two-dimensional bar code generation device, a two-dimensional bar code identification method, a two-dimensional bar code identification device, an electronic device, and a computer-readable storage medium. The purpose.

本開示の1つの態様によれば、入力情報に基づいてデータコードワードシーケンスを生成するステップと、前記データコードワードシーケンスに対して暗号化処理を行うことで、暗号化コードワードシーケンスを生成するステップと、誤り訂正コードブロックの数を決定するステップと、前記誤り訂正ブロックの数に対応する構築方式により、前記データコードワードシーケンス及び前記暗号化コードワードシーケンスから2次元バーコードを生成するステップと、を含む、2次元バーコードの生成方法が提供される。 According to one aspect of the present disclosure, a step of generating a data code word sequence based on input information and a step of generating an encrypted code word sequence by performing an encryption process on the data code word sequence. A step of determining the number of error correction code blocks, a step of generating a two-dimensional bar code from the data code word sequence and the encrypted code word sequence by a construction method corresponding to the number of error correction blocks, and a step of generating a two-dimensional bar code. A method for generating a two-dimensional bar code including the above is provided.

本開示の1つの例示的な実施例では、前記データコードワードシーケンスを暗号化することで、暗号化コードワードシーケンスを生成するステップは、秘密鍵管理システムに基づいて前記データコードワードシーケンスに対応する秘密鍵を生成するステップと、前記秘密鍵を使用して、暗号化アルゴリズムに基づいて前記データコードワードシーケンスを暗号化するステップと、暗号化された前記データコードワードシーケンスを、予め設定された符号化アルゴリズムに従って、前記暗号化コードワードシーケンスに変換するステップとを含む。 In one exemplary embodiment of the present disclosure, the step of generating an encrypted code word sequence by encrypting the data code word sequence corresponds to the data code word sequence based on the private key management system. A step of generating a private key, a step of encrypting the data code word sequence based on an encryption algorithm using the private key, and a preset code for the encrypted data code word sequence. It includes a step of converting to the encryption code word sequence according to the encryption algorithm.

本開示の1つの例示的な実施例では、前記誤り訂正ブロックの数を決定するステップは、前記データコードワードシーケンスの長さ及び誤り訂正レベルを取得するステップと、前記データコードワードシーケンスの長さ及び誤り訂正レベルに基づいて、予め設定された誤り訂正特性テーブルエントリで対応する誤り訂正ブロックの数を検索するステップとを含む。 In one exemplary embodiment of the present disclosure, the steps of determining the number of error correction blocks are the step of obtaining the length and error correction level of the data code word sequence and the length of the data code word sequence. And a step of searching for the number of corresponding error correction blocks in a preset error correction characteristic table entry based on the error correction level.

本開示の1つの例示的な実施例では、前記誤り訂正ブロックの数に対応する構築方式により、前記データコードワードシーケンス及び前記暗号化コードワードシーケンスから2次元バーコードを生成するステップは、前記誤り訂正ブロックの数が予め設定された閾値よりも大きいか否かを判断するステップと、そうである場合、予め設定された誤り訂正特性テーブルエントリに基づいて対応する誤り訂正ブロックを検索し、前記暗号化コードワードシーケンスを前記対応する誤り訂正ブロックに埋め込むステップと、そうではない場合、前記暗号化コードワードシーケンスを、前記2次元バーコードを構成する最後のデータコードワードブロックに埋め込むステップと、を含む。 In one exemplary embodiment of the present disclosure, the step of generating a two-dimensional bar code from the data code word sequence and the encrypted code word sequence by a construction method corresponding to the number of error correction blocks is the error. A step of determining whether the number of correction blocks is greater than a preset threshold, and if so, a search for the corresponding error correction block based on a preset error correction characteristic table entry and said the code. It includes a step of embedding the code word sequence in the corresponding error correction block, and otherwise embedding the code word sequence in the last data code word block constituting the two-dimensional bar code. ..

本開示の1つの態様によれば、暗号化された2次元バーコードドを読み取って解析するステップと、誤り訂正ブロックの数を取得するステップと、誤り訂正コードブロックの数に対応するデータ復元方式により、前記2次元バーコードのデータコードワードシーケンス及び暗号化コードワードシーケンスを復元するステップと、前記暗号化コードワードシーケンスに対してセキュリティチェックを行い、前記暗号化コードワードシーケンスがセキュリティチェックに合格すると、入力情報を取得するステップとを含む、2次元バーコードの識別方法が提供される。 According to one aspect of the present disclosure, a step of reading and analyzing an encrypted two-dimensional bar coded, a step of acquiring the number of error correction blocks, and a data recovery method corresponding to the number of error correction code blocks are performed. A step of restoring the data code word sequence and the encrypted code word sequence of the two-dimensional bar code, a security check is performed on the encrypted code word sequence, and when the encrypted code word sequence passes the security check, an input is made. A method for identifying a two-dimensional bar code is provided, including a step of acquiring information.

本開示の1つの例示的な実施例では、前記した誤り訂正コードブロックの数に対応するデータ復元方式により、前記2次元バーコードのデータコードワードシーケンス及び暗号化コードワードシーケンスを復元するステップは、前記誤り訂正ブロックの数が予め設定された閾値よりも大きいか否かを判断するステップと、そうである場合、予め設定された誤り訂正特性テーブルエントリに基づいて対応する誤り訂正ブロックを検索し、復号アルゴリズムを通して前記誤り訂正ブロック内の暗号化コードワードシーケンスを取得するステップと、そうではない場合、復号アルゴリズムを通して、前記2次元バーコードを構成する最後のデータコードワードブロック内の前記暗号化コードワードシーケンスを取得するステップと、を含む。 In one exemplary embodiment of the present disclosure, the step of restoring the data code word sequence and the encrypted code word sequence of the two-dimensional bar code by the data recovery method corresponding to the number of error correction code blocks described above is A step of determining whether the number of error correction blocks is greater than a preset threshold, and if so, a search for the corresponding error correction block based on a preset error correction characteristic table entry. The step of obtaining the encryption code word sequence in the error correction block through a decryption algorithm, and otherwise through the decryption algorithm, the encryption code word in the last data code word block constituting the two-dimensional bar code. Includes steps to get the sequence.

本開示の1つの態様によれば、入力情報に基づいてデータコードワードシーケンスを生成するためのデータコードワード生成モジュールと、前記データコードワードシーケンスに対して暗号化処理を行うことで、暗号化コードワードシーケンスを生成するための暗号化コードワード生成モジュールと、誤り訂正コードブロックの数を決定するための誤り訂正コードブロック決定モジュールと、前記誤り訂正コードブロックの数に対応する構築方式により、前記データコードワードシーケンス及び前記暗号化コードワードシーケンスから2次元バーコードを生成するための2次元バーコード情報生成モジュールと、を備える、2次元バーコード生成装置が提供される。 According to one aspect of the present disclosure, an encryption code is obtained by performing an encryption process on the data code word generation module for generating a data code word sequence based on the input information and the data code word sequence. The data is provided by an encryption code word generation module for generating a word sequence, an error correction code block determination module for determining the number of error correction code blocks, and a construction method corresponding to the number of error correction code blocks. A two-dimensional bar code generator including a code word sequence and a two-dimensional bar code information generation module for generating a two-dimensional bar code from the encrypted code word sequence is provided.

本開示の1つの態様によれば、暗号化された2次元バーコードを読み取って解析するための2次元バーコード情報読み取りモジュールと、誤り訂正ブロックの数を決定するための誤り訂正コードブロック決定モジュールと、誤り訂正ブロックの数に対応するデータ復元方式により、前記2次元バーコードのデータコードワードシーケンス及び暗号化コードワードシーケンスを復元するためのコードワード復元モジュールと、前記暗号化コードワードシーケンスに対してセキュリティチェックを行い、前記暗号化コードワードシーケンスがセキュリティチェックに合格すると、入力情報を取得するための入力情報取得モジュールと、を備える、2次元バーコードの識別装置が提供される。 According to one aspect of the present disclosure, a two-dimensional bar code information reading module for reading and analyzing an encrypted two-dimensional bar code and an error correction code block determination module for determining the number of error correction blocks. With respect to the code word restoration module for restoring the data code word sequence and the encrypted code word sequence of the two-dimensional bar code and the encrypted code word sequence by the data restoration method corresponding to the number of error correction blocks. When the security check is performed and the encrypted code word sequence passes the security check, a two-dimensional bar code identification device including an input information acquisition module for acquiring input information is provided.

本開示の1つの態様によれば、プロセッサと、機械読み取り可能な命令が格納され、前記機械読み取り可能な命令が前記プロセッサにより実行されると、上記いずれか1項に記載の方法を実現する記憶媒体とを備える、電子機器が提供される。 According to one aspect of the present disclosure, a processor and a machine-readable instruction are stored, and when the machine-readable instruction is executed by the processor, a storage that realizes the method according to any one of the above. An electronic device is provided that includes a medium.

本開示の1つの態様によれば、コンピュータプログラムが格納され、前記コンピュータプログラムがプロセッサにより実行されると、上記いずれか1項に記載の方法を実現する、コンピュータ読み取り可能な記憶媒体が提供される。 According to one aspect of the present disclosure, when a computer program is stored and the computer program is executed by a processor, a computer-readable storage medium that realizes the method according to any one of the above is provided. ..

本開示の1つの例示的な実施例の2次元バーコードの生成方法は、入力情報に基づいてデータコードワードシーケンスを生成し、前記データコードワードシーケンスに対して暗号化処理を行うことで、暗号化コードワードシーケンスを生成し、誤り訂正ブロックの数を決定した後、誤り訂正ブロックの数に対応する構築方式により、データコードワードシーケンス及び暗号化コードワードシーケンスから2次元バーコードを生成する。一方ではデータコードワードシーケンスを暗号化できるため、データ内容の改ざんを防止でき、2次元バーコードの安全性を向上させることができ、他方では、誤り訂正ブロックの数に対応する構築方式により、データコードワードシーケンス及び暗号化コードワードシーケンスから2次元バーコード情報を生成するため、暗号化コードワードシーケンスの完全な埋め込みを効率的に完了できる。 The two-dimensional bar code generation method of one exemplary embodiment of the present disclosure is to generate a data code word sequence based on input information and perform encryption processing on the data code word sequence to encrypt the data code word sequence. After generating the encrypted code word sequence and determining the number of error correction blocks, a two-dimensional bar code is generated from the data code word sequence and the encrypted code word sequence by a construction method corresponding to the number of error correction blocks. On the one hand, the data code word sequence can be encrypted, so that the data contents can be prevented from being tampered with, and the security of the two-dimensional bar code can be improved. On the other hand, the data can be constructed by a construction method corresponding to the number of error correction blocks. Since the two-dimensional bar code information is generated from the code word sequence and the encrypted code word sequence, the complete embedding of the encrypted code word sequence can be efficiently completed.

なお、以上の一般的な説明及び以下の詳細な説明は、例示的かつ解釈的なものに過ぎず、本開示を制限するものではない。 It should be noted that the above general description and the following detailed description are merely exemplary and interpretive, and do not limit the present disclosure.

図面を参照して、例示的な実施例について詳細に説明し、本開示の上記及び他の特徴及び利点がより明らかになる。
本開示の1つの例示的な実施例による2次元バーコードの生成方法のフローチャートが示される。 本開示の1つの例示的な実施例による2次元バーコードの識別方法のフローチャートが示される。 本開示の1つの例示的な実施例による2次元バーコード生成装置の模式的なブロック図が示される。 本開示の1つの例示的な実施例による2次元バーコードの識別装置の模式的なブロック図が示される。 本開示の1つの例示的な実施例による電子機器のブロック図が模式的に示される。 本開示の1つの例示的な実施例によるコンピュータ読み取り可能な記憶媒体の模式図が模式的に示される。
Illustrative Examples will be described in detail with reference to the drawings to further demonstrate the above and other features and advantages of the present disclosure.
A flowchart of a method for generating a two-dimensional bar code according to one exemplary embodiment of the present disclosure is shown. A flowchart of a method for identifying a two-dimensional bar code according to one exemplary embodiment of the present disclosure is shown. A schematic block diagram of a two-dimensional bar code generator according to one exemplary embodiment of the present disclosure is shown. A schematic block diagram of a two-dimensional bar code identification device according to one exemplary embodiment of the present disclosure is shown. A block diagram of an electronic device according to one exemplary embodiment of the present disclosure is schematically shown. A schematic diagram of a computer-readable storage medium according to one exemplary embodiment of the present disclosure is schematically shown.

現在、図面を参照しながら、例示的な実施例について全面的に説明する。しかしながら、例示的な実施例は、複数種の形態で実施でき、ここで説明された実施例に限定されるものとして理解すべきではない。逆に、これらの実施例は、本開示を全面的かつ完全なものにさせ、例示的な実施例の構想を当業者に完全に伝達するために提供するものである。図面において、同一の符号は、同一又は類似した部分を示し、したがって、それらについての重複する説明が省略される。 Presently, exemplary embodiments will be fully described with reference to the drawings. However, exemplary examples can be implemented in multiple forms and should not be understood as being limited to the examples described herein. Conversely, these examples are provided to complete and complete the disclosure and to fully convey the concept of exemplary examples to those skilled in the art. In the drawings, the same reference numerals indicate the same or similar parts, and thus duplicate description of them is omitted.

また、説明された特徴、構造又は特性は、適切な方式で1つ以上の実施例に組み合わせることができる。以下の説明では、本開示の実施例を十分に理解するように、多くの具体的な詳細が提供される。しかしながら、当業者であれば、前記特定の詳細の1つまたはそれ以上無しで、本開示の技術案を実施でき、又は、他の方法、ユニット、材料、装置、ステップ等を用いることができること気づくであろう。他の場合、本開示の各態様が不明瞭になることが回避されるよう、公知の構造、方法、装置、実装、材料又は操作が詳細に示されていないか、又は説明されていない。 Also, the features, structures or properties described can be combined in one or more embodiments in a suitable manner. The following description provides many specific details to fully understand the embodiments of the present disclosure. However, one of ordinary skill in the art will realize that the technical proposal of the present disclosure can be implemented or other methods, units, materials, devices, steps, etc. can be used without one or more of the particular details. Will. In other cases, known structures, methods, devices, implementations, materials or operations are not shown or described in detail to avoid obscuring each aspect of the present disclosure.

図面に示すブロック図は、機能エンティティに過ぎず、必ずしも物理的に独立したエンティティに対応するものではない。すなわち、ソフトウェアの形態でこれらの機能エンティティを実現し、又は1つ以上のソフトウェアがハードウェア化されたモジュールでこれらの機能エンティティ又は機能エンティティの一部を実現し、又は、異なるネットワーク及び/又はプロセッサ装置及び/又はマイクロコントローラでこれらの機能エンティティを実現することができる。 The block diagram shown in the drawing is merely a functional entity and does not necessarily correspond to a physically independent entity. That is, they implement these functional entities in the form of software, or one or more software implements some of these functional entities or functional entities in hardwareized modules, or different networks and / or processors. These functional entities can be implemented in devices and / or microcontrollers.

本例では、まず、ネットワーク機器に適用できる2次元バーコードの生成方法を提供し、前記ネットワーク機器は、たとえば、サーバなどの電子機器であり得る。図1に示すように、該2次元バーコードの生成方法は、以下のステップを含み得る。 In this example, first, a method for generating a two-dimensional bar code applicable to a network device is provided, and the network device can be an electronic device such as a server, for example. As shown in FIG. 1, the method for generating a two-dimensional bar code may include the following steps.

ステップS110、入力情報に基づいてデータコードワード(data codeword)シーケンスを生成する。 Step S110, a data codeword sequence is generated based on the input information.

ステップS120、前記データコードワードシーケンスに対して暗号化処理を行うことで、暗号化コードワードシーケンスを生成する。 In step S120, the encrypted code word sequence is generated by performing the encryption process on the data code word sequence.

ステップS130、誤り訂正ブロックの数(number of error correction blocks)を決定する。 Step S130, the number of error correction blocks (number of error correction blocks) is determined.

ステップS140、前記誤り訂正ブロックの数に対応する構築方式により、前記データコードワードシーケンス及び前記暗号化コードワードシーケンスから2次元バーコード情報を生成する。 Two-dimensional bar code information is generated from the data code word sequence and the encrypted code word sequence by the construction method corresponding to the number of error correction blocks in step S140.

本例における2次元バーコードの生成方法によれば、一方ではデータコードワードシーケンスに対して暗号化処理を行うことができるため、データ内容の改ざんを防止でき、2次元バーコードの安全性を向上させることができ、他方では、誤り訂正ブロックの数に対応する構築方式により、データコードワードシーケンス及び暗号化コードワードシーケンスから2次元バーコード情報を生成するため、暗号化コードワードシーケンスの完全な埋め込みを効率的に完了できる。 According to the two-dimensional bar code generation method in this example, on the other hand, the data code word sequence can be encrypted, so that the data contents can be prevented from being tampered with and the security of the two-dimensional bar code is improved. On the other hand, the two-dimensional bar code information is generated from the data code word sequence and the encrypted code word sequence by the construction method corresponding to the number of error correction blocks, so that the encrypted code word sequence is completely embedded. Can be completed efficiently.

次に、本例における2次元バーコードの生成方法についてさらに説明する。 Next, the method of generating the two-dimensional bar code in this example will be further described.

ステップS110では、入力情報に基づいてデータコードワードシーケンスを生成する。 In step S110, a data code word sequence is generated based on the input information.

入力情報は、入力されるデータストリームであり、2次元バーコードを生成することを必要とする情報である。本例示的な実施形態では、まず、入力情報を分析してその長さを決定し、入力情報の長さに基づいて対応する2次元バーコードのフォーマット及びバージョンを決定する。ここで、2次元バーコードのフォーマットには、誤り訂正レベル(error correction level)、マスク(mask)の番号や誤り訂正コード(error correction code)などの情報が含まれており、2次元バーコードには複数のバージョンがあってもよく、各バージョンは固有のシンボル構造を表す。マスク番号は、後続のマスク操作でしか取得できないため、このときは空でもよい。 The input information is a data stream to be input, and is information that needs to generate a two-dimensional bar code. In this exemplary embodiment, first, the input information is analyzed to determine its length, and the corresponding two-dimensional bar code format and version are determined based on the length of the input information. Here, the two-dimensional bar code format includes information such as an error correction level (errror correction level), a mask (mask) number, and an error correction code (error correction code), and is included in the two-dimensional bar code. May have multiple versions, each version representing a unique symbolic structure. Since the mask number can be obtained only by the subsequent mask operation, it may be empty at this time.

その後、データ符号化により入力情報をビットストリームに変換し、モード変換を行うことでデータビットストリームをより短い長さに変換する必要があるか否かを決定する。また、データ符号化により入力情報をビットストリームに変換した後、リードソロモン誤り訂正(Reed−solomon Error Correction、RS誤り訂正)符号化などのアルゴリズムにより、入力情報に対応するRS符号データコードワードシーケンスを生成することができる。 After that, the input information is converted into a bit stream by data coding, and the mode conversion is performed to determine whether or not it is necessary to convert the data bit stream to a shorter length. In addition, after converting the input information into a bit stream by data coding, an RS code data code word sequence corresponding to the input information is obtained by an algorithm such as Reed-solomon Error Correction (RS error correction) coding. Can be generated.

ステップS120では、前記データコードワードシーケンスに対して暗号化処理を行うことで、暗号化コードワードシーケンスを生成する。 In step S120, the encrypted code word sequence is generated by performing the encryption process on the data code word sequence.

本例では、このステップは、秘密鍵管理システムに基づいて前記データコードワードシーケンスに対応する秘密鍵を生成し、生成された秘密鍵を使用して、暗号化アルゴリズムに基づいて前記データコードワードシーケンスを暗号化するステップと、暗号化されたデータコードワードシーケンスを、予め設定された符号化アルゴリズムに従って、前記暗号化コードワードシーケンスに変換するステップと、を含み得る。 In this example, this step generates a private key corresponding to the data code word sequence based on the private key management system, and uses the generated private key to generate the data code word sequence based on an encryption algorithm. And the step of converting the encrypted data code word sequence into the encrypted code word sequence according to a preset encoding algorithm.

RS符号データコードワードシーケンスを取得した後、一実施例では、秘密鍵管理システムに基づいて前記RS符号データコードワードシーケンスに対応する秘密鍵を生成するステップは、該RS符号データコードワードシーケンスを秘密鍵管理システムに入力して、該RS符号データコードワードシーケンスに対応する秘密鍵を生成するステップを含み得る。別の実施例では、該RS符号データコードワードシーケンスに対応する符号化記号を生成し、該符号化記号を秘密鍵管理システムに入力することにより、該符号化記号に対応する秘密鍵を生成し得る。 After acquiring the RS code data code word sequence, in one embodiment, the step of generating the secret key corresponding to the RS code data code word sequence based on the secret key management system keeps the RS code data code word sequence secret. It may include a step of inputting into a key management system to generate a private key corresponding to the RS code data code word sequence. In another embodiment, a coded symbol corresponding to the RS code data code word sequence is generated, and the coded code is input to the secret key management system to generate a secret key corresponding to the coded code. obtain.

本例では、秘密鍵管理システムごとに秘密鍵生成ルールが異なるため、秘密鍵管理システムごとに秘密鍵の生成方式が異なり、このため、秘密鍵管理システムごとに生成され前記RS符号データコードワードシーケンスに対応する秘密鍵も異なる場合がある。本開示では、秘密鍵管理システム及び秘密鍵生成ルールについては特に制限がない。 In this example, since the private key generation rule is different for each private key management system, the private key generation method is different for each private key management system. Therefore, the RS code data code word sequence generated for each private key management system is generated. The corresponding private key may also be different. In this disclosure, there are no particular restrictions on the private key management system and the private key generation rule.

データコードワードシーケンスに対応する秘密鍵が生成された後、秘密鍵を使用して、暗号化アルゴリズムによって該データコードワードシーケンスを暗号化する。次に、暗号化されたデータコードワードシーケンスに対して有限体変換を実行した後、RS誤り訂正符号化などのアルゴリズムを使用して符号化し、それにより、安全に暗号化されたRS符号暗号化コードワードシーケンスを得ることができる。ここで、該暗号化アルゴリズムは、DES(Data Encryption Standard、データ暗号化標準)暗号化アルゴリズム、AES(Advanced Encryption Standard、高度暗号化標準)暗号化アルゴリズムなどであってもよく、これについては、本開示では特に限定しない。 After the private key corresponding to the data code word sequence is generated, the private key is used to encrypt the data code word sequence by an encryption algorithm. The encrypted data code word sequence is then subjected to finite body conversion and then encoded using an algorithm such as RS error correction coding, thereby securely encrypted RS code encryption. You can get the code word sequence. Here, the encryption algorithm may be a DES (Data Encryption Standard) encryption algorithm, an AES (Advanced Encryption Standard) encryption algorithm, or the like. The disclosure is not particularly limited.

ステップS130では、誤り訂正ブロックの数を決定する。 In step S130, the number of error correction blocks is determined.

本例示的な実施形態では、このステップは、前記データコードワードシーケンスの長さ(例えば、コードワードの数によって表される)及び誤り訂正レベルを取得するステップと、前記データコードワードシーケンスの長さ及び誤り訂正レベルに基づいて、予め設定された誤り訂正特性テーブルエントリで誤り訂正ブロックの数を検索するステップと、を含み得る。 In this exemplary embodiment, the steps include obtaining the length of the data codeword sequence (eg, represented by the number of codewords) and the error correction level, and the length of the data codeword sequence. And a step of searching for the number of error correction blocks in a preset error correction characteristic table entry based on the error correction level.

この予め設定された誤り訂正特性テーブルエントリは、データコードワードシーケンスの長さ及び誤り訂正レベルなどの情報に基づいて予め設定されるものであってもよく、例えば、以下の表を参照する。 This preset error correction characteristic table entry may be preset based on information such as the length of the data code word sequence and the error correction level. For example, refer to the following table.

Figure 2021513141
Figure 2021513141

表1は、予め設定された誤り訂正特性テーブルエントリを示し、本開示の内容の例をさらに理解するためにのみ使用され、予め設定された誤り訂正特性テーブルエントリの具体的な内容を制限するものではない。 Table 1 shows preset error correction characteristic table entries, which are used only to further understand the examples of the contents of the present disclosure and limit the specific contents of the preset error correction characteristic table entries. is not it.

予め設定された誤り訂正特性テーブルエントリには、バージョン、コードワードの総数、誤り訂正レベル、対応する誤り訂正ブロックの数、及び各誤り訂正ブロックの誤り訂正コード間の対応関係が事前に設定されている。各誤り訂正ブロックの誤り訂正コードは(c、k、r)として表すことができる。ここで、cは各誤り訂正ブロック内のコードワードの総数(total number of codewords)を表し、kは該誤り訂正ブロック内のデータコードワードの数(number of data codewords)を表し、rは該誤り訂正ブロックの誤り訂正コード容量(number of error correction capacity)を表し、そして、c、k、rは、c=k+2*rの関係式を満たす。 The preset error correction characteristic table entry is preset with the version, the total number of codewords, the error correction level, the number of corresponding error correction blocks, and the correspondence between the error correction codes of each error correction block. There is. The error correction code of each error correction block can be represented as (c, k, r). Here, c represents the total number of codewords in each error correction block (total number of codewords), k represents the number of data codewords in the error correction block (number of data codewords), and r represents the error. It represents the error correction code capacity (number of error correction code capacity) of the correction block, and c, k, and r satisfy the relational expression of c = k + 2 * r.

RS符号データコードワードシーケンスが生成されると、RS符号データコードワードシーケンスの長さ(つまり、該シーケンス内のコードワードの総数)、所定のバージョン番号、及び誤り訂正レベルに基づいて、表1において対応する誤り訂正ブロックの数を検索できる。 When an RS code data code word sequence is generated, it is shown in Table 1 based on the length of the RS code data code word sequence (ie, the total number of code words in the sequence), the given version number, and the error correction level. You can search for the number of corresponding error correction blocks.

ステップS140では、前記誤り訂正ブロックの数に対応する構築方式により、前記データコードワードシーケンス及び前記暗号化コードワードシーケンスから2次元バーコード情報を生成する。 In step S140, two-dimensional bar code information is generated from the data code word sequence and the encrypted code word sequence by a construction method corresponding to the number of error correction blocks.

本例示的な実施形態では、このステップは、前記誤り訂正ブロックの数が予め設定された閾値より大きいか否かを判断し、そうである場合、予め設定された誤り訂正特性テーブルエントリに基づいて対応する所定の埋め込まれる誤り訂正ブロックを検索し、前記暗号化コードワードシーケンスを前記誤り訂正ブロックに埋め込むステップと、そうではない場合、前記暗号化コードワードシーケンスを、2次元バーコードを構成する最後のデータコードワードブロックに埋め込むステップと、を含み得る。前記構築方式には、ブロッククロッシング構築方式及び補足構築方式が含まれ得、例えば、予め設定された閾値を1に設定し、前記誤り訂正ブロックの数が1より大きいと判定された場合、ブロッククロッシング構築方式が用いられ、前記誤り訂正ブロックの数が1以下の場合、補足構築方式が用いられる。例えば、 In this exemplary embodiment, this step determines if the number of error correction blocks is greater than a preset threshold, and if so, based on a preset error correction characteristic table entry. A step of searching for a corresponding predetermined embedded error correction block and embedding the encryption code word sequence in the error correction block, and if not, the last step of forming the two-dimensional bar code. It may include a step of embedding in a data code word block of. The construction method may include a block crossing construction method and a supplementary construction method. For example, when a preset threshold value is set to 1 and it is determined that the number of error correction blocks is larger than 1, block crossing is performed. When the construction method is used and the number of the error correction blocks is 1 or less, the supplementary construction method is used. For example

ステップS110では、バージョンが3であり、誤り訂正レベルがQであり、データコードワードシーケンスのデータ長さが70であると判定された場合、表1で検索され得る対応する誤り訂正ブロックの数が2である。該誤り訂正ブロックの数2が予め設定された閾値1より大きいため、ブロッククロッシング構築方式を使用して最終情報を構築でき、つまり、該誤り訂正レベルQ、データ長さ70、及びバージョン番号3に対応する表1における各誤り訂正ブロックの誤り訂正コード(35、17、9)を検索し、RS符号暗号化コードワードシーケンスを各誤り訂正ブロック(35、17、9)の補足ビットに埋め込むことにより、最終情報が構築される。 In step S110, if it is determined that the version is 3, the error correction level is Q, and the data length of the data code word sequence is 70, then the number of corresponding error correction blocks that can be retrieved in Table 1 is It is 2. Since the number 2 of the error correction blocks is larger than the preset threshold 1, the final information can be constructed using the block crossing construction method, that is, the error correction level Q, the data length 70, and the version number 3. By searching for the error correction code (35, 17, 9) of each error correction block in the corresponding Table 1, and embedding the RS code encrypted code word sequence in the supplementary bit of each error correction block (35, 17, 9). , The final information is constructed.

しかし、ステップS110では、バージョンが2であり、誤り訂正レベルがQであり、データコードワードシーケンスのデータ長さが44であると判定された場合、表1で検索され得る対応する誤り訂正ブロックの数が1である。該誤り訂正ブロックの数1が予め設定された閾値1と等しいため、補足構築方式を使用して最終情報を構築でき、つまり、該暗号化コードワードシーケンスを、2次元バーコードを構成する最後のデータコードワードブロックの補足ビットに埋め込むことにより、最終情報が構築される。 However, in step S110, if it is determined that the version is 2, the error correction level is Q, and the data length of the data code word sequence is 44, then the corresponding error correction block that can be searched in Table 1 The number is 1. Since the number 1 of the error correction blocks is equal to the preset threshold 1, the final information can be constructed using the supplementary construction method, that is, the encrypted code word sequence is the last to constitute a two-dimensional bar code. The final information is constructed by embedding it in the supplementary bits of the data code word block.

本例示的な実施形態では、暗号化コードワード構造の完全性を確保するために、暗号化コードワードシーケンスを生成する前に、誤り訂正ブロックの数に対応する構築方式に応じて、暗号化コードワードシーケンスの長さ、すなわち暗号化コードワードシーケンスに含まれるコードワードの総数を予め決定しておく。例えば、暗号化コードワードシーケンスを誤り訂正ブロックに完全に埋め込むように、暗号化コードワードシーケンスの長さは、対応する構築方式の誤り訂正ブロック内の埋め込まれ得る補足ビットの数以下になるように制御される。 In this exemplary embodiment, in order to ensure the integrity of the cryptographic codeword structure, the cryptographic code depends on the construction method corresponding to the number of error correction blocks before generating the cryptographic codeword sequence. The length of the word sequence, that is, the total number of codewords included in the encrypted codeword sequence is determined in advance. For example, the length of the cryptographic codeword sequence should be less than or equal to the number of supplementary bits that can be embedded in the error correction block of the corresponding construction method so that the cryptographic codeword sequence is completely embedded in the error correction block. Be controlled.

最終情報が構築された後、この最終情報をマトリックスに配置し、選択したマスクグラフィックを追加し、選択したマスクグラフィックに応じてフォーマットにおけるマスク番号情報を補足し、最後に、フォーマットとバージョン情報を追加し、それにより2次元バーコード(つまり、2次元バーコード記号)を生成する。 After the final information is constructed, place this final information in a matrix, add the selected mask graphic, supplement the mask number information in the format according to the selected mask graphic, and finally add the format and barcode information. Then, a two-dimensional bar code (that is, a two-dimensional bar code symbol) is generated.

さらに、本例示的な実施形態では、端末機器に適用できる2次元バーコードの識別方法がさらに提供され、前記端末機器は、例えば、携帯電話、コンピュータ、PDAなど、2次元バーコードスキャン機能を有する各種の電子機器とすることができる。図2に示すように、前記2次元バーコードの識別方法は、ステップS210〜S240を含み得る。 Further, in the present exemplary embodiment, a method for identifying a two-dimensional bar code applicable to a terminal device is further provided, and the terminal device has a two-dimensional bar code scanning function such as a mobile phone, a computer, or a PDA. It can be various electronic devices. As shown in FIG. 2, the method for identifying the two-dimensional bar code may include steps S210 to S240.

ステップS210、暗号化された2次元バーコードを読み取って解析する。 Step S210, the encrypted two-dimensional bar code is read and analyzed.

このステップでは、暗号化された2次元バーコードを読み取って解析することには、電子機器を介して暗号化された2次元バーコードをスキャンして読み取り、2次元バーコードの深浅モジュールを解析し、フォーマット情報を復号し、この2次元バーコードにおけるデータコードワードシーケンスの長さを取得し、追加されたマスクグラフィックスを削除して、バージョンとフォーマット情報を決定し、誤り訂正レベル、マスク番号や誤り訂正コードなどの情報を取得する。 In this step, in order to read and analyze the encrypted 2D bar code, the encrypted 2D bar code is scanned and read via an electronic device, and the shallow module of the 2D bar code is analyzed. , Decrypt the format information, get the length of the data code word sequence in this 2D barcode, remove the added mask graphics, determine the version and format information, error correction level, mask number and Obtain information such as an error correction code.

ステップS220、誤り訂正ブロックの数を決定する。 Step S220, the number of error correction blocks is determined.

このステップでは、誤り訂正ブロックの数を決定する方式については、ステップS130における誤り訂正ブロックの数を決定する方式を参照することができ、ここでは詳しく説明しない。 In this step, the method for determining the number of error correction blocks can be referred to the method for determining the number of error correction blocks in step S130, which will not be described in detail here.

ステップS230、誤り訂正ブロックの数に対応するデータ復元方式により、前記2次元バーコードのデータコードワードシーケンス及び暗号化コードワードシーケンスを復元する。 The data code word sequence and the encrypted code word sequence of the two-dimensional bar code are restored by the data restoration method corresponding to the number of error correction blocks in step S230.

誤り訂正ブロックの数に対応するデータ復元方式により前記2次元バーコードのデータコードワードシーケンス及び暗号化コードワードシーケンスを復元するステップは、前記誤り訂正ブロックの数が予め設定された閾値よりも大きいか否かを判断し、そうである場合、予め設定された誤り訂正特性テーブルエントリに基づいて対応する所定の埋め込まれる誤り訂正ブロックを検索し、復号アルゴリズムを通じて前記誤り訂正ブロック内の暗号化コードワードシーケンスを取得するステップと、そうではない場合、復号アルゴリズムを通じて前記2次元バーコードを構成する最後のデータコードワードブロック内の前記暗号化コードワードシーケンスを取得するステップと、を含む。 Is the step of restoring the data code word sequence and the encrypted code word sequence of the two-dimensional bar code by the data restoration method corresponding to the number of error correction blocks larger than the preset threshold number of the error correction blocks? It determines whether or not, and if so, searches for the corresponding predetermined embedded error correction block based on a preset error correction characteristic table entry, and through a decryption algorithm an encrypted code word sequence within the error correction block. A step of obtaining the encrypted code word sequence in the last data code word block constituting the two-dimensional bar code through a decryption algorithm.

このステップでは、予め設定された閾値は、上記ステップS140の予め設定された閾値と同じであってもよく、誤り訂正ブロックの数を決定した後、誤り訂正ブロックの数に対応するデータ復元方式には、ブロックごとのデータ復元方式及びセグメントごとのデータ復元方式が含まれ得る。誤り訂正ブロックの数が予め設定された閾値よりも大きい場合は、ブロックごとのデータ復元方式が用いられ、前記誤り訂正ブロックの数が予め設定された閾値以下の場合、セグメントごとのデータ復元方式が用いられる。 In this step, the preset threshold value may be the same as the preset threshold value in step S140, and after determining the number of error correction blocks, a data restoration method corresponding to the number of error correction blocks is adopted. Can include a block-by-block data recovery method and a segment-by-segment data recovery method. When the number of error correction blocks is larger than the preset threshold value, the data recovery method for each block is used, and when the number of error correction blocks is less than or equal to the preset threshold value, the data recovery method for each segment is used. Used.

一例として、バージョンが3であり、誤り訂正レベルがQであり、データ長さが70であると決定され、予め設定された誤り訂正特性テーブルエントリ(表1)で検索された対応する誤り訂正ブロックの数が2である場合、該誤り訂正ブロックの数2が予め設定された閾値1より大きいため、ブロックごとのデータ復元方式を使用して、データコードワードシーケンス及び暗号化コードワードシーケンスを復元でき、つまり、該誤り訂正レベル、データ長さに対応する表1における各誤り訂正ブロックを検索し、対応する誤り訂正ブロックの誤り訂正コード(35、17、9)をそれから見つけ、次に、誤り訂正ブロック(35、17、9)の補足ビットからRS符号暗号化コードワードシーケンスを取得し、これにより、RS符号データコードワードシーケンス及びRS符号暗号化コードワードシーケンスを復元する。しかし、誤り訂正ブロックの数が1であると決定された場合は、この誤り訂正ブロックの数1が予め設定された閾値1と等しいため、セグメントごとのデータ復元方式を使用して、RS符号暗号化コードワードシーケンスを復元でき、つまり、2次元バーコードを構成する最後のデータコードワードブロックの補足ビットから、埋め込まれるRS符号暗号化コードワードシーケンスを取得し、これにより、RS符号データコードワードシーケンス及びRS符号暗号化コードワードシーケンスを復元する。 As an example, the corresponding error correction block determined to have a version of 3, an error correction level of Q, and a data length of 70, and searched for in a preset error correction characteristic table entry (Table 1). When the number of is 2, since the number 2 of the error correction blocks is larger than the preset threshold value 1, the data code word sequence and the encrypted code word sequence can be restored by using the block-by-block data restoration method. That is, each error correction block in Table 1 corresponding to the error correction level and data length is searched, the error correction code (35, 17, 9) of the corresponding error correction block is found from it, and then the error correction is performed. The RS code code code word sequence is acquired from the supplementary bits of the block (35, 17, 9), thereby restoring the RS code data code word sequence and the RS code code code word sequence. However, when it is determined that the number of error correction blocks is 1, since the number 1 of the error correction blocks is equal to the preset threshold value 1, the RS code code is used by using the data restoration method for each segment. The codeword sequence can be restored, that is, the RS code codeword sequence to be embedded is obtained from the supplementary bits of the last data code word block that makes up the two-dimensional bar code, thereby obtaining the RS code data code word sequence. And the RS code encryption code word sequence is restored.

ステップS240、前記暗号化コードワードシーケンスに対してセキュリティチェックを行い、前記暗号化コードワードシーケンスがセキュリティチェックに合格すると、入力情報を取得する。 In step S240, a security check is performed on the encrypted code word sequence, and when the encrypted code word sequence passes the security check, input information is acquired.

このステップでは、前記暗号化コードワードシーケンスに対するセキュリティチェックには、RS符号暗号化コードワードシーケンスを取得した後、まず、RS符号誤り訂正復号アルゴリズムを通じてRS符号暗号化コードワードシーケンスに対して有限体変換を実行し、秘密鍵管理システムに基づいて、有限体変換後の暗号化コードワードシーケンスを解読し、それにより、対応する秘密鍵を取得する。次に、該秘密鍵をチェックし、秘密鍵のチェック方式は、秘密鍵管理システムによって異なり、例えば、取得した秘密鍵をステップS120で取得した秘密鍵とマッチングさせることができ、又は、取得した秘密鍵をRS符号データコードワードシーケンスなどとマッチングすることもでき、両方がマッチングする場合は、セキュリティチェックに合格したと判断し、2次元バーコード記号における元の入力情報を復元できる。両方がマッチングしない場合、又は、取得した秘密鍵が0である場合、情報が改ざんされている可能性があり、セキュリティチェックに失敗したと判断し、2次元バーコード記号における元の入力情報を復元できない。このことから、本開示は、2次元バーコード情報のセキュリティチェックにより、2次元バーコード情報が改ざんされているか否かをタイムリーに確認でき、さらに2次元バーコード情報の実際の応用シナリオにおけるセキュリティを確保できることがわかる。 In this step, in the security check for the encrypted code word sequence, after acquiring the RS code encrypted code word sequence, first, a finite body conversion is performed for the RS code encrypted code word sequence through the RS code error correction / decoding algorithm. And, based on the private key management system, decrypt the encrypted codeword sequence after finite body conversion, thereby obtaining the corresponding private key. Next, the private key is checked, and the method for checking the private key differs depending on the private key management system. For example, the acquired private key can be matched with the private key acquired in step S120, or the acquired secret can be matched. The key can also be matched with an RS code data code word sequence or the like, and if both match, it is judged that the security check has been passed, and the original input information in the two-dimensional bar code symbol can be restored. If both do not match, or if the acquired private key is 0, the information may have been tampered with, and it is judged that the security check has failed, and the original input information in the 2D barcode symbol is restored. Can not. From this, in the present disclosure, it is possible to timely confirm whether or not the 2D barcode information has been tampered with by the security check of the 2D barcode information, and further, the security in the actual application scenario of the 2D barcode information. It can be seen that can be secured.

なお、本開示における方法の各ステップは、図面において特定の順序で説明されているが、これらステップが特定の順序で実行されなければならない、又は示されたすべてのステップが実行されなければならないことを要求又は示唆するものではない。追加又は代替として、特定のステップを省略したり、複数のステップを1つのステップに結合して実行したり、及び/又は1つのステップを複数のステップに分割して実行したりすることもできる。 It should be noted that although the steps of the method in the present disclosure are described in a particular order in the drawings, these steps must be performed in a particular order or all the steps indicated must be performed. Does not require or suggest. As additions or alternatives, a specific step may be omitted, a plurality of steps may be combined into one step to be executed, and / or one step may be divided into a plurality of steps to be executed.

また、本例では、2次元バーコードの生成装置がさらに提供される。図3に示すように、この2次元バーコードの生成装置300は、データコードワード生成モジュール310、暗号化コードワード生成モジュール320、誤り訂正コードブロック決定モジュール330、及び2次元バーコード生成モジュール340を備え得る。 Further, in this example, a two-dimensional bar code generator is further provided. As shown in FIG. 3, the two-dimensional bar code generation device 300 includes a data code word generation module 310, an encryption code word generation module 320, an error correction code block determination module 330, and a two-dimensional bar code generation module 340. Can be prepared.

データコードワード生成モジュール310は、入力情報に基づいてデータコードワードシーケンスを生成することに用いることができる。 The data code word generation module 310 can be used to generate a data code word sequence based on the input information.

暗号化コードワード生成モジュール320は、前記データコードワードシーケンスに対して暗号化処理を行うことで、暗号化コードワードシーケンスを生成することに用いることができる。 The encryption code word generation module 320 can be used to generate an encryption code word sequence by performing an encryption process on the data code word sequence.

誤り訂正コードブロック決定モジュール330は、誤り訂正ブロックの数を決定することに用いることができる。 The error correction code block determination module 330 can be used to determine the number of error correction blocks.

2次元バーコード生成モジュール340は、前記誤り訂正ブロックの数に対応する構築方式により、前記データコードワードシーケンス及び前記暗号化コードワードシーケンスから2次元バーコードを生成することに用いることができる。 The two-dimensional bar code generation module 340 can be used to generate a two-dimensional bar code from the data code word sequence and the encrypted code word sequence by a construction method corresponding to the number of error correction blocks.

上記の2次元バーコードの生成装置の各モジュールの詳細は、対応する2次元バーコードの生成方法で詳細に説明されているので、ここでは詳しく説明しない。 The details of each module of the above-mentioned two-dimensional bar code generator are described in detail in the corresponding two-dimensional bar code generation method, and are not described in detail here.

また、本例示的な実施例では、2次元バーコードの識別装置がさらに提供される。図4に示すように、この2次元バーコードの識別装置400は、2次元バーコード読み取りモジュール410、誤り訂正コードブロック決定モジュール420、コードワード復元モジュール430、及び入力情報取得モジュール440を備え得る。 Further, in this exemplary embodiment, a two-dimensional bar code identification device is further provided. As shown in FIG. 4, the two-dimensional bar code identification device 400 may include a two-dimensional bar code reading module 410, an error correction code block determination module 420, a code word restoration module 430, and an input information acquisition module 440.

2次元バーコード読み取りモジュール410は、暗号化された2次元バーコードを読み取って解析することに用いられる。 The two-dimensional bar code reading module 410 is used to read and analyze an encrypted two-dimensional bar code.

誤り訂正コードブロック決定モジュール420は、誤り訂正ブロックの数を決定することに用いられる。 The error correction code block determination module 420 is used to determine the number of error correction blocks.

コードワード復元モジュール430は、誤り訂正ブロックの数に対応するデータ復元方式により、前記2次元バーコードのデータコードワードシーケンス及び暗号化コードワードシーケンスを復元することに用いられる。 The codeword restoration module 430 is used to restore the data codeword sequence and the encrypted codeword sequence of the two-dimensional bar code by a data restoration method corresponding to the number of error correction blocks.

入力情報取得モジュール440は、前記暗号化コードワードシーケンスに対してセキュリティチェックを行い、前記暗号化コードワードシーケンスがセキュリティチェックに合格すると、入力情報を取得することに用いられる。 The input information acquisition module 440 is used to perform a security check on the encrypted code word sequence and acquire input information when the encrypted code word sequence passes the security check.

上記の2次元バーコードの識別装置の各モジュールの詳細は、対応する2次元バーコードの識別方法で詳細に説明されているので、ここでは詳しく説明しない。 The details of each module of the above-mentioned two-dimensional bar code identification device are described in detail in the corresponding two-dimensional bar code identification method, and are not described in detail here.

なお、上記の詳細な説明では、2次元バーコードの生成装置300のいくつかのモジュール又はユニットが言及されているが、この分割は必須ではない。実際は、本開示の実施形態によれば、上記の2つ以上のモジュール又はユニットの特徴及び機能は、1つのモジュール又はユニットで具現化されてもよい。逆には、上記の1つのモジュール又はユニットの特徴及び機能は、複数のモジュール又はユニットにさらに分割して具現化されてもよい。 Although some modules or units of the two-dimensional bar code generator 300 are mentioned in the above detailed description, this division is not essential. In fact, according to the embodiments of the present disclosure, the features and functions of the two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of the above one module or unit may be further divided and embodied into a plurality of modules or units.

また、本開示の1つの例示的な実施例では、上記方法を実現できる電子機器がさらに提供される。 Further, in one exemplary embodiment of the present disclosure, an electronic device capable of realizing the above method is further provided.

当業者が理解できるように、本開示の様々な態様がシステム、方法、又はプログラム製品として実現できる。したがって、本開示の様々な態様は、完全なハードウェアの実施例、完全なソフトウェアの実施例(ファームウェア、マイクロコードなどを含む)、又はハードウェアとソフトウェアの実施例の組み合わせの形で具体的に実現され得、ここで、これらは「回路」、「モジュール」又は「システム」と総称できる。 As will be appreciated by those skilled in the art, various aspects of the disclosure can be realized as systems, methods, or program products. Accordingly, various aspects of the present disclosure are specifically in the form of complete hardware examples, complete software examples (including firmware, microcode, etc.), or a combination of hardware and software examples. It can be realized, where these can be collectively referred to as "circuits", "modules" or "systems".

以下、本開示の実施例に係る電子機器500について、図5を参照しながら説明する。図5に示される電子機器500は、単なる例に過ぎず、本開示の実施例の機能及び使用範囲を何ら制限するものではない。 Hereinafter, the electronic device 500 according to the embodiment of the present disclosure will be described with reference to FIG. The electronic device 500 shown in FIG. 5 is merely an example, and does not limit the functions and the range of use of the embodiments of the present disclosure.

図5に示すように、電子機器500は、汎用コンピューティング機器の形で表されている。電子機器500の構成要素は、上記の少なくとも1つの処理ユニット510、少なくとも1つの記憶ユニット520、異なるシステムの構成要素(記憶ユニット520及び処理ユニット510を含む)を接続するバス530、及び表示ユニット540を含み得るが、これらに限定されない。 As shown in FIG. 5, the electronic device 500 is represented in the form of a general-purpose computing device. The components of the electronic device 500 include at least one processing unit 510, at least one storage unit 520, a bus 530 connecting components of different systems (including storage unit 520 and processing unit 510), and a display unit 540. Can include, but are not limited to.

そのうち、前記記憶ユニット520は機械実行可能な命令を記憶し、前記機械実行可能な命令は、前記処理ユニット510によって実行されると、前記処理ユニット510に、本明細書に記載の「例示的な方法」部分に記載の本発明の各例示的な実施例に係るステップを実行させる。例えば、前記処理ユニット510は、図1に示すステップS110〜S140、及び図2に示すステップS210〜S240を実行することができる。 Among them, the storage unit 520 stores a machine-executable instruction, and when the machine-executable instruction is executed by the processing unit 510, the processing unit 510 describes the "exemplary" described in the present specification. The steps according to each exemplary embodiment of the invention described in the "Methods" section are performed. For example, the processing unit 510 can execute steps S110 to S140 shown in FIG. 1 and steps S210 to S240 shown in FIG.

記憶ユニット520は、ランダムアクセス記憶ユニット(RAM)5201及び/又はキャッシュ記憶ユニット5202などの揮発性記憶ユニットの形態の読み取り可能な媒体を含み得、さらに、読み取り専用記憶ユニット(ROM)5203を含み得る。 The storage unit 520 may include a readable medium in the form of a volatile storage unit such as a random access storage unit (RAM) 5201 and / or a cache storage unit 5202, and may further include a read-only storage unit (ROM) 5203. ..

記憶ユニット520は、(少なくとも1つの)命令モジュール5205のセットを有する命令/ユーティリティツール5204をさらに含み得る。そのような命令モジュール5205は、オペレーティングシステム、1つ以上のアプリケーションプログラム、他のプログラムモジュール、及びプログラムデータを含むが、これらに限定されず、これらの各例又はこれらの組み合わせには、ネットワーク環境の実装が含まれ得る。 The storage unit 520 may further include an instruction / utility tool 5204 having a set of (at least one) instruction modules 5205. Such instruction module 5205 includes, but is not limited to, an operating system, one or more application programs, other program modules, and program data. Implementations may be included.

バス530は、いくつかのタイプのバス構造の1つ以上を表すことができ、記憶ユニットバス又は記憶ユニットコントローラ、周辺バス、グラフィック加速ポート、処理ユニット、又は様々なバス構造のいずれかを使用するローカルエリアバスを含む。 The bus 530 can represent one or more of several types of bus structures and uses either a storage unit bus or storage unit controller, a peripheral bus, a graphic acceleration port, a processing unit, or various bus structures. Includes local area bus.

電子機器500はまた、1つ以上の外部機器570(例えば、キーボード、ポインティング機器、ブルートゥース(登録商標)機器など)と通信することができ、ユーザがこの電子機器500とインタラクションすることを可能にする1つ以上の機器と通信することもでき、及び/又は、該電子機器500が1つ以上の他のコンピューティング機器と通信することを可能にする任意の機器(例えば、ルータ、モデムなど)と通信することもできる。そのような通信は、入力/出力(I/O)インターフェース550を介して実行され得る。さらに、電子機器500は、ネットワークアダプタ560を介して、1つ以上のネットワーク(例えば、ローカルエリアネットワーク(LAN)、ワイドエリアネットワーク(WAN)、及び/又はインターネットなどのパブリックネットワーク)と通信することもできる。図示するように、ネットワークアダプタ560は、バス530を介して電子機器500の他のモジュールと通信する。なお、図には示されていないが、マイクロコード、機器ドライバー、冗長処理ユニット、外部磁気ディスクドライブアレイ、RAIDシステム、磁気テープドライブ、及びデータバックアップストレージシステムを含むが、これらに限定されない他のハードウェア及び/又はソフトウェアモジュールを電子機器500と共に使用できる。 The electronic device 500 can also communicate with one or more external devices 570 (eg, keyboards, pointing devices, Bluetooth® devices, etc.), allowing the user to interact with the electronic device 500. With any device (eg, router, modem, etc.) that can also communicate with one or more devices and / or allow the electronic device 500 to communicate with one or more other computing devices. You can also communicate. Such communication may be performed via the input / output (I / O) interface 550. Further, the electronic device 500 may communicate with one or more networks (for example, a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via the network adapter 560. it can. As shown, the network adapter 560 communicates with other modules of the electronic device 500 via the bus 530. Although not shown in the figure, other hardware including, but not limited to, microcodes, equipment drivers, redundant processing units, external magnetic disk drive arrays, RAID systems, magnetic tape drives, and data backup storage systems. Wear and / or software modules can be used with the electronic device 500.

上記実施例の説明を通して、当業者が容易に理解できるように、ここで説明される例示的な実施例がソフトウェアによって実現されてもよく、ソフトウェアと必要なハードウェアとの組み合わせによって実現されてもよい。したがって、本開示の実施例による技術案は、ソフトウェア製品の形態で具体化され得、このソフトウェア製品は、不揮発性記憶媒体(CD−ROM、Uディスク、モバイルハードディスクなどであり得る)又はネットワーク上に記憶され得、コンピューティング機器(パーソナルコンピュータ、サーバ、端末装置、又はネットワーク機器などであり得る)に本開示の実施例による方法を実行させるいくつかの命令を含む。 As will be readily appreciated by those skilled in the art through the description of the above embodiments, the exemplary embodiments described herein may be implemented by software or by a combination of software and required hardware. Good. Therefore, the technical proposal according to the embodiment of the present disclosure can be embodied in the form of a software product, which software product can be on a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on a network. It may be stored and includes several instructions that cause a computing device (which may be a personal computer, server, terminal device, network device, etc.) to perform the method according to the embodiments of the present disclosure.

本開示の例示的な実施例では、本明細書の上記方法を実現することができるプログラム製品が記憶されたコンピュータ読み取り可能な記憶媒体がさらに提供される。いくつかの可能な実施例では、本開示の様々な態様は、プログラムコードを含むプログラム製品の形で実現することもでき、前記プログラム製品が端末機器上で実行されると、前記プログラムコードは、本明細書の上記「例示的な方法」部分に記載の本発明の様々な例示的な実施例によるステップを前記端末機器に実行させる。 An exemplary embodiment of the present disclosure further provides a computer-readable storage medium in which a program product that can implement the methods described herein is stored. In some possible embodiments, various aspects of the disclosure can also be implemented in the form of a program product that includes the program code, and when the program product is executed on the terminal device, the program code will display. Have the terminal device perform the steps according to various exemplary embodiments of the invention described in the "exemplary method" portion of the specification.

図6に示すように、本開示の実施例による上記方法を実現するためのプログラム製品600が説明されており、ポータブルコンパクトディスク読み取り専用メモリ(CD−ROM)を使用することができ、プログラムコードを含み、端末機器、例えば、パソコンで実行できる。ただし、本開示のプログラム製品はこれに限定されず、本明細書では、読み取り可能な記憶媒体は、命令実行システム、装置又はデバイスによって又はそれらと組み合わせて使用され得るプログラムを含む又は記憶している任意の物理的な媒体であり得る。 As shown in FIG. 6, a program product 600 for realizing the above method according to the embodiment of the present disclosure is described, a portable compact disc read-only memory (CD-ROM) can be used, and a program code can be used. Including, it can be executed on a terminal device, for example, a personal computer. However, the program products of the present disclosure are not limited thereto, and in the present specification, the readable storage medium includes or stores a program that can be used by or in combination with an instruction execution system, device or device. It can be any physical medium.

前記プログラム製品は、1つ以上の読み取り可能な媒体の任意の組み合わせを使用することができる。読み取り可能な媒体は、読み取り可能な信号媒体又は読み取り可能な記憶媒体であり得る。読み取り可能な記憶媒体は、例えば、電気、磁気、光学、電磁気、赤外線又は半導体のシステム、装置、又はデバイス、あるいは上記の任意の組み合わせであり得るが、これらに限定されない。読み取り可能な記憶媒体の具体例(網羅的ではないリスト)には、1つ以上のワイヤーを備えた電気接続、ポータブルディスク、ハードディスク、ランダムアクセスメモリ(RAM)、読み取り専用メモリ(ROM)、消去可能プログラム可能な読み取り専用メモリ(EPROM又はフラッシュメモリ)、光ファイバー、ポータブルコンパクトディスク読み取り専用メモリ(CD−ROM)、光記憶デバイス、磁気記憶デバイス、又はこれらの適切な組み合わせが含まれる。 The program product can use any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, but is not limited to, for example, electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices, or devices, or any combination of the above. Specific examples of readable storage media (non-exhaustive list) include electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), and erasable. Includes programmable read-only memory (EPROM or flash memory), fiber optics, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or the appropriate combination thereof.

コンピュータ読み取り可能な信号媒体は、読み取り可能なプログラムコードが搬送された、ベースバンドで又は搬送波の一部として送信されるデータ信号を含み得る。この伝搬されたデータ信号は、多くの形態をとることができ、これら形態には、電磁信号、光信号、又はこれらの任意の適切な組み合わせが含まれるが、これらに限定されない。読み取り可能な信号媒体は、読み取り可能な記憶媒体以外の任意の読み取り可能な媒体であってもよく、この読み取り可能な媒体は、命令実行システム、装置、又はデバイスによって又はそれらと組み合わせて使用されるプログラムを送信、伝播、又は伝送することができる。 Computer-readable signal media may include data signals transmitted in baseband or as part of a carrier wave carrying readable program code. This propagated data signal can take many forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. The readable signal medium may be any readable medium other than a readable storage medium, which is used by or in combination with an instruction execution system, device, or device. The program can be transmitted, propagated, or transmitted.

読み取り可能な媒体に含まれるプログラムコードは、任意の適切な媒体を使用して送信され得、この任意の適切な媒体には、無線、有線、光ファイバーケーブル、RFなど、又はこれらの任意の適切な組み合わせが含まれるが、これらに限定されない。 The program code contained in the readable medium may be transmitted using any suitable medium, such as wireless, wired, fiber optic cable, RF, etc., or any suitable medium thereof. Combinations are included, but not limited to these.

本開示の操作を実行するためのプログラムコードは、1つ以上のプログラミング言語の任意の組み合わせで書くことができ、前記プログラミング言語には、Java、C++などのオブジェクト指向プログラミング言語や、「C」言語又は類似したプログラミング言語などの従来の手続き型プログラミング言語が含まれる。プログラムコードは、完全にユーザのコンピューティング機器で実行したり、部分的にユーザの機器で実行したり、独立したソフトウェアパッケージとして実行したり、一部がユーザのコンピューティング機器で実行し、別の一部がリモートコンピューティング機器で実行したり、又は完全にリモートコンピューティング機器又はサーバで実行したりすることができる。リモートコンピューティング機器に係る場合、リモートコンピューティング機器は、ローカルエリアネットワーク(LAN)又はワイドエリアネットワーク(WAN)など、あらゆる種類のネットワークを介してユーザのコンピューティング機器に接続でき、又は、外部のコンピューティング機器に接続できる(例えば、インターネットサービスプロバイダーによるインターネットを介して接続する)。 The program code for performing the operations of the present disclosure can be written in any combination of one or more programming languages, and the programming languages include object-oriented programming languages such as Java and C ++, and the "C" language. Or conventional procedural programming languages such as similar programming languages are included. The program code may run entirely on the user's computing device, partially on the user's device, as a separate software package, or partly on the user's computing device, and another. It can be partially run on a remote computing device or entirely on a remote computing device or server. When it comes to remote computing equipment, the remote computing equipment can connect to the user's computing equipment via any type of network, such as a local area network (LAN) or wide area network (WAN), or external computing. Can connect to a computing device (for example, connect via the Internet by an internet service provider).

また、上記図面は、本開示の1つの例示的な実施例による方法に含まれる処理について模式的に説明するものに過ぎず、制限するためのものではない。理解しやすくするために、上記図面に示される処理は、これらの処理の時間順序を示したり、又は制限したりするものではない。なお、理解やすくするために、これらの処理は、たとえば、複数モジュールに同期又は非同期に実行されてもよい。 Further, the above drawings merely schematically explain the processing included in the method according to one exemplary embodiment of the present disclosure, and are not intended to limit the processing. For the sake of clarity, the processes shown in the drawings above do not indicate or limit the time sequence of these processes. For the sake of clarity, these processes may be executed synchronously or asynchronously in, for example, a plurality of modules.

当業者は、明細書を配慮して本開示を実施した後、本開示の他の実施例に容易に想到できる。本願は、本開示のいかなる変形、用途又は適応的変化を含むことが意図され、これらの変形、用途又は適応的変化は、本開示の一般的な原理、本開示に開示されてない本技術分野での公知の常識又は常用技術手段を含む。明細書及び実施例は、例示的なものとすべきであり、本開示の実質的範囲及び要旨は、特許請求の範囲により指摘される。 One of ordinary skill in the art can easily conceive of other embodiments of the present disclosure after implementing the present disclosure in consideration of the specification. The present application is intended to include any modifications, uses or adaptive changes of the present disclosure, these modifications, uses or adaptive changes are the general principles of the present disclosure, the art of technology not disclosed in the present disclosure. Includes known common wisdom or common technical means in. The specification and examples should be exemplary, and the substantive scope and gist of the present disclosure are pointed out by the claims.

なお、本開示は、以上説明され、図面に示される正確な構造に限られず、その範囲から逸脱することなく、様々な補正や変更を行うことができる。本開示の範囲は、添付の特許請求の範囲のみに限定される。 It should be noted that the present disclosure is not limited to the exact structure described above and shown in the drawings, and various corrections and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited to the scope of the appended claims.

Claims (10)

入力情報に基づいてデータコードワードシーケンスを生成するステップと、
前記データコードワードシーケンスに対して暗号化処理を行うことで、暗号化コードワードシーケンスを生成するステップと、
誤り訂正ブロックの数を決定するステップと、
前記誤り訂正ブロックの数に対応する構築方式により、前記データコードワードシーケンス及び前記暗号化コードワードシーケンスから2次元バーコードを生成するステップと、を含む、2次元バーコードの生成方法。
Steps to generate a data code word sequence based on the input information,
A step of generating an encrypted code word sequence by performing an encryption process on the data code word sequence, and
Steps to determine the number of error correction blocks,
A method for generating a two-dimensional bar code, which comprises a step of generating a two-dimensional bar code from the data code word sequence and the encrypted code word sequence by a construction method corresponding to the number of error correction blocks.
前記データコードワードシーケンスを暗号化することで、前記暗号化コードワードシーケンスを生成するステップは、
秘密鍵管理システムに基づいて前記データコードワードシーケンスに対応する秘密鍵を生成するステップと、
前記秘密鍵を使用して、暗号化アルゴリズムに基づいて前記データコードワードシーケンスを暗号化するステップと、
暗号化された前記データコードワードシーケンスを、予め設定された符号化アルゴリズムに従って、前記暗号化コードワードシーケンスに変換するステップと、を含む、ことを特徴とする請求項1に記載の方法。
The step of generating the encrypted codeword sequence by encrypting the datacode word sequence is
A step of generating a private key corresponding to the data code word sequence based on the private key management system, and
A step of encrypting the data code word sequence using the private key based on an encryption algorithm.
The method according to claim 1, wherein the encrypted data code word sequence is converted into the encrypted code word sequence according to a preset coding algorithm.
前記誤り訂正ブロックの数を決定するステップは、
前記データコードワードシーケンスの長さ及び誤り訂正レベルを取得するステップと、
前記データコードワードシーケンスの長さ及び前記誤り訂正レベルに基づいて、予め設定された誤り訂正特性テーブルエントリで対応する誤り訂正ブロックの数を検索するステップと、を含む、ことを特徴とする請求項1に記載の方法。
The step of determining the number of error correction blocks is
The step of acquiring the length and error correction level of the data code word sequence, and
A claim comprising: searching for the number of corresponding error correction blocks in a preset error correction characteristic table entry based on the length of the data code word sequence and the error correction level. The method according to 1.
前記誤り訂正ブロックの数に対応する構築方式により、前記データコードワードシーケンス及び前記暗号化コードワードシーケンスから2次元バーコードを生成するステップは、
前記誤り訂正ブロックの数が予め設定された閾値よりも大きいか否かを判断するステップと、
前記誤り訂正ブロックの数が予め設定された閾値よりも大きい場合、予め設定された誤り訂正特性テーブルエントリに基づいて対応する誤り訂正ブロックを検索し、前記暗号化コードワードシーケンスを前記対応する誤り訂正ブロックに埋め込むステップと、
前記誤り訂正ブロックの数が予め設定された閾値以下である場合、前記暗号化コードワードシーケンスを、前記2次元バーコードを構成する最後のデータコードワードブロックに埋め込むステップと、を含む、ことを特徴とする請求項1に記載の方法。
The step of generating a two-dimensional bar code from the data code word sequence and the encrypted code word sequence by the construction method corresponding to the number of error correction blocks is
A step of determining whether or not the number of error correction blocks is larger than a preset threshold value, and
When the number of the error correction blocks is larger than the preset threshold value, the corresponding error correction block is searched based on the preset error correction characteristic table entry, and the encryption code word sequence is used as the corresponding error correction. Steps to embed in blocks and
When the number of error correction blocks is equal to or less than a preset threshold value, the feature includes a step of embedding the encrypted code word sequence in the final data code word block constituting the two-dimensional bar code. The method according to claim 1.
暗号化された2次元バーコードを読み取って解析するステップと、
誤り訂正ブロックの数を取得するステップと、
誤り訂正ブロックの数に対応するデータ復元方式により、前記2次元バーコードのデータコードワードシーケンス及び暗号化コードワードシーケンスを復元するステップと、
前記暗号化コードワードシーケンスに対してセキュリティチェックを行い、前記暗号化コードワードシーケンスがセキュリティチェックに合格すると、入力情報を取得するステップと、を含む、2次元バーコードの識別方法。
Steps to read and analyze the encrypted 2D barcode,
Steps to get the number of error correction blocks,
A step of restoring the data code word sequence and the encrypted code word sequence of the two-dimensional bar code by a data restoration method corresponding to the number of error correction blocks, and
A method for identifying a two-dimensional bar code, which includes a step of performing a security check on the encrypted code word sequence and acquiring input information when the encrypted code word sequence passes the security check.
前記誤り訂正ブロックの数に対応するデータ復元方式により前記2次元バーコードのデータコードワードシーケンス及び暗号化コードワードシーケンスを復元するステップは、
前記誤り訂正ブロックの数が予め設定された閾値よりも大きいか否かを判断するステップと、
前記誤り訂正ブロックの数が予め設定された閾値よりも大きい場合、予め設定された誤り訂正特性テーブルエントリに基づいて対応する誤り訂正ブロックを検索し、復号アルゴリズムを通じて前記対応する誤り訂正ブロック内の暗号化コードワードシーケンスを取得するステップと、
前記誤り訂正ブロックの数が予め設定された閾値以下である場合、復号アルゴリズムを通じて前記2次元バーコードを構成する最後のデータコードワードブロック内の前記暗号化コードワードシーケンスを取得するステップと、を含む、ことを特徴とする請求項5に記載の方法。
The step of restoring the data code word sequence and the encrypted code word sequence of the two-dimensional bar code by the data recovery method corresponding to the number of error correction blocks is
A step of determining whether or not the number of error correction blocks is larger than a preset threshold value, and
When the number of the error correction blocks is larger than the preset threshold value, the corresponding error correction block is searched based on the preset error correction characteristic table entry, and the cipher in the corresponding error correction block is searched through the decoding algorithm. Steps to get the codeword sequence and
When the number of error correction blocks is equal to or less than a preset threshold value, a step of acquiring the encrypted code word sequence in the last data code word block constituting the two-dimensional bar code through a decryption algorithm is included. The method according to claim 5, wherein the method is characterized by the above.
入力情報に基づいてデータコードワードシーケンスを生成するためのデータコードワード生成モジュールと、
前記データコードワードシーケンスに対して暗号化処理を行うことで、暗号化コードワードシーケンスを生成するための暗号化コードワード生成モジュールと、
誤り訂正ブロックの数を決定するための誤り訂正コードブロック決定モジュールと、
前記誤り訂正ブロックの数に対応する構築方式により、前記データコードワードシーケンス及び前記暗号化コードワードシーケンスから2次元バーコードを生成するための2次元バーコード情報生成モジュールと、を備える、2次元バーコード生成装置。
A data code word generation module for generating data code word sequences based on input information,
An encryption code word generation module for generating an encryption code word sequence by performing encryption processing on the data code word sequence, and
An error correction code block determination module for determining the number of error correction blocks,
A two-dimensional bar including a two-dimensional bar code information generation module for generating a two-dimensional bar code from the data code word sequence and the encrypted code word sequence by a construction method corresponding to the number of error correction blocks. Code generator.
暗号化された2次元バーコードを読み取って解析するための2次元バーコード情報読み取りモジュールと、
誤り訂正ブロックの数を決定するための誤り訂正コードブロック決定モジュールと、
誤り訂正ブロックの数に対応するデータ復元方式により、前記2次元バーコードのデータコードワードシーケンス及び暗号化コードワードシーケンスを復元するためのコードワード復元モジュールと、
前記暗号化コードワードシーケンスに対してセキュリティチェックを行い、前記暗号化コードワードシーケンスがセキュリティチェックに合格すると、入力情報を取得するための入力情報取得モジュールと、を備える、2次元バーコードの識別装置。
A 2D barcode information reading module for reading and analyzing encrypted 2D barcodes,
An error correction code block determination module for determining the number of error correction blocks,
A code word restoration module for restoring the data code word sequence and the encrypted code word sequence of the two-dimensional bar code by a data restoration method corresponding to the number of error correction blocks, and
A two-dimensional bar code identification device including an input information acquisition module for acquiring input information when a security check is performed on the encrypted code word sequence and the encrypted code word sequence passes the security check. ..
プロセッサと、
機械読み取り可能な命令が格納されている記憶媒体と、を備え、
前記機械読み取り可能な命令が前記プロセッサにより実行されると、請求項1〜6のいずれか1項に記載の方法を実現する電子機器。
With the processor
With a storage medium, which stores machine-readable instructions,
An electronic device that realizes the method according to any one of claims 1 to 6, when the machine-readable instruction is executed by the processor.
コンピュータプログラムが格納されているコンピュータ読み取り可能な記憶媒体であって、前記コンピュータプログラムがプロセッサにより実行されると、請求項1〜6のいずれか1項に記載の方法を実現するコンピュータ読み取り可能な記憶媒体。 A computer-readable storage medium in which a computer program is stored, which realizes the method according to any one of claims 1 to 6 when the computer program is executed by a processor. Medium.
JP2020540589A 2018-02-07 2018-12-10 Generation and identification of 2D barcodes Pending JP2021513141A (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201810123416.0 2018-02-07
CN201810123416.0A CN110119643B (en) 2018-02-07 2018-02-07 Two-dimensional code generation method and device and two-dimensional code identification method and device
PCT/CN2018/119983 WO2019153867A1 (en) 2018-02-07 2018-12-10 Two-dimensional code generation and identification

Publications (1)

Publication Number Publication Date
JP2021513141A true JP2021513141A (en) 2021-05-20

Family

ID=67520118

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020540589A Pending JP2021513141A (en) 2018-02-07 2018-12-10 Generation and identification of 2D barcodes

Country Status (5)

Country Link
US (1) US11263416B2 (en)
JP (1) JP2021513141A (en)
CN (1) CN110119643B (en)
CA (1) CA3090716A1 (en)
WO (1) WO2019153867A1 (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11010233B1 (en) 2018-01-18 2021-05-18 Pure Storage, Inc Hardware-based system monitoring
US11341236B2 (en) 2019-11-22 2022-05-24 Pure Storage, Inc. Traffic-based detection of a security threat to a storage system
US11720714B2 (en) 2019-11-22 2023-08-08 Pure Storage, Inc. Inter-I/O relationship based detection of a security threat to a storage system
US11687418B2 (en) 2019-11-22 2023-06-27 Pure Storage, Inc. Automatic generation of recovery plans specific to individual storage elements
US11941116B2 (en) * 2019-11-22 2024-03-26 Pure Storage, Inc. Ransomware-based data protection parameter modification
US11645162B2 (en) 2019-11-22 2023-05-09 Pure Storage, Inc. Recovery point determination for data restoration in a storage system
US11657155B2 (en) 2019-11-22 2023-05-23 Pure Storage, Inc Snapshot delta metric based determination of a possible ransomware attack against data maintained by a storage system
US11500788B2 (en) 2019-11-22 2022-11-15 Pure Storage, Inc. Logical address based authorization of operations with respect to a storage system
US11755751B2 (en) 2019-11-22 2023-09-12 Pure Storage, Inc. Modify access restrictions in response to a possible attack against data stored by a storage system
US11651075B2 (en) 2019-11-22 2023-05-16 Pure Storage, Inc. Extensible attack monitoring by a storage system
US11625481B2 (en) 2019-11-22 2023-04-11 Pure Storage, Inc. Selective throttling of operations potentially related to a security threat to a storage system
US11675898B2 (en) * 2019-11-22 2023-06-13 Pure Storage, Inc. Recovery dataset management for security threat monitoring
US11615185B2 (en) 2019-11-22 2023-03-28 Pure Storage, Inc. Multi-layer security threat detection for a storage system
US11720692B2 (en) 2019-11-22 2023-08-08 Pure Storage, Inc. Hardware token based management of recovery datasets for a storage system
US20210382992A1 (en) * 2019-11-22 2021-12-09 Pure Storage, Inc. Remote Analysis of Potentially Corrupt Data Written to a Storage System
US11520907B1 (en) * 2019-11-22 2022-12-06 Pure Storage, Inc. Storage system snapshot retention based on encrypted data
CN110991589A (en) * 2019-12-09 2020-04-10 李蕴光 Two-dimensional code and encryption method thereof
CN111461279A (en) * 2020-04-01 2020-07-28 张晓鸿 Multifunctional carrier I-shaped code structure and using method thereof
CN112069543B (en) * 2020-09-15 2021-06-18 广州市微柏软件股份有限公司 Archive intelligent analysis management system based on big data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118710A (en) * 2011-03-08 2011-07-06 上海红松信息技术有限公司 System and method for transmitting data between mobile terminals
CN103778453A (en) * 2014-01-18 2014-05-07 谭洪舟 Writable two-dimensional bar code based on fault-tolerant mechanism and generating method thereof
CN104376356A (en) * 2014-12-02 2015-02-25 合肥城市云数据中心有限公司 Two-dimensional code generating method with encryption function
CN107067056A (en) * 2017-02-14 2017-08-18 阿里巴巴集团控股有限公司 Two-dimensional code generation method and its equipment and two-dimensional code identification method and its equipment

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3541731B2 (en) * 1999-06-18 2004-07-14 株式会社デンソー Forgery determination method, forgery determination device, and recording medium
US7391917B2 (en) * 2003-02-13 2008-06-24 Canon Kabushiki Kaisha Image processing method
JP4181892B2 (en) * 2003-02-21 2008-11-19 キヤノン株式会社 Image processing method
JP3796500B2 (en) * 2003-11-21 2006-07-12 キヤノン株式会社 Image processing apparatus, control method therefor, and program
JP4510535B2 (en) * 2004-06-24 2010-07-28 キヤノン株式会社 Image processing apparatus, control method therefor, and program
CN102034127A (en) * 2009-09-28 2011-04-27 上海易悠通信息科技有限公司 Novel high-capacity two-dimensional barcode and system, encoding and decoding methods and applications thereof
US9858518B2 (en) * 2013-10-30 2018-01-02 Toppan Tdk Label Co., Ltd. Method for generating two-dimensional barcode, device for generating two-dimensional barcode, method for reading two-dimensional barcode, device for reading two-dimensional barcode, two-dimensional barcode, and program
JP6489464B2 (en) * 2014-04-14 2019-03-27 株式会社テララコード研究所 Optical code, information transmission method, and authentication method
CN104618334A (en) 2014-12-29 2015-05-13 通邮(中国)科技有限公司 Method and system for generating and verifying dynamic two-dimensional code
CN106156820B (en) * 2015-03-25 2019-04-19 北大方正集团有限公司 Two-dimensional code generation method and device
CN106529633B (en) 2015-09-10 2019-11-15 阿里巴巴集团控股有限公司 Generation method, coding/decoding method and the device of two dimensional code
CN106651734A (en) 2015-10-30 2017-05-10 重庆邮电大学 Binary two-dimensional code image encryption and decryption method and device
CN105825257B (en) * 2016-03-09 2018-05-29 东北大学 Information hiding and hiding information extracting method and system based on two-dimensional bar code
CN106296170A (en) 2016-07-28 2017-01-04 北京小米移动软件有限公司 The method of Quick Response Code payment, Apparatus and system
CN108345925A (en) * 2017-01-24 2018-07-31 北京大码技术有限公司 Generation, reading method and the device of composite type two-dimensional code
CN107169395A (en) 2017-06-20 2017-09-15 重庆大学 A kind of safer QR codes generation and read method
CN107395581B (en) * 2017-07-11 2020-11-17 上海众人网络安全技术有限公司 Two-dimensional code generation and reading method, device, system, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118710A (en) * 2011-03-08 2011-07-06 上海红松信息技术有限公司 System and method for transmitting data between mobile terminals
CN103778453A (en) * 2014-01-18 2014-05-07 谭洪舟 Writable two-dimensional bar code based on fault-tolerant mechanism and generating method thereof
CN104376356A (en) * 2014-12-02 2015-02-25 合肥城市云数据中心有限公司 Two-dimensional code generating method with encryption function
CN107067056A (en) * 2017-02-14 2017-08-18 阿里巴巴集团控股有限公司 Two-dimensional code generation method and its equipment and two-dimensional code identification method and its equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
岡本栄司, "暗号理論入門", vol. 初版3刷, JPN6013016194, 1 October 1996 (1996-10-01), JP, pages 109 - 112, ISSN: 0004589395 *

Also Published As

Publication number Publication date
CA3090716A1 (en) 2019-08-15
CN110119643A (en) 2019-08-13
US20200364429A1 (en) 2020-11-19
CN110119643B (en) 2020-11-03
US11263416B2 (en) 2022-03-01
WO2019153867A1 (en) 2019-08-15

Similar Documents

Publication Publication Date Title
JP2021513141A (en) Generation and identification of 2D barcodes
US7783046B1 (en) Probabilistic cryptographic key identification with deterministic result
CN110084599B (en) Key processing method, device, equipment and storage medium
CN110210211A (en) A kind of method of data protection and calculate equipment
CN110738513B (en) Method and device for generating and verifying redemption code
KR101852526B1 (en) Method for managing encrypted file in mobile device and encrypted file management system having the same
CN113904832A (en) Data encryption method, device, equipment and storage medium
US20120017086A1 (en) Information security transmission system
JP2008099243A (en) Error correction encoding device, error correction encoding method, and program
CN116756758A (en) Data encryption and decryption method and device, computer equipment and storage medium
CN114547653B (en) Encryption method, decryption method, device, equipment and medium for development environment
CN116664123A (en) Digital wallet design method based on blockchain technology
CN110517045B (en) Block chain data processing method, device, equipment and storage medium
CN114900287A (en) Road network-based encryption method, device, equipment and storage medium
CN114968206A (en) Dynamic confusion method and system for programming language codes
KR20230095750A (en) Whitebox cryptographic method and device based on block cipher mode of operation using one-way function
CN109257341B (en) Block chain address management method and equipment
CN113872753B (en) Encryption transmission method and device based on SHA256 sequence form data
CN113283215B (en) Data confusion method and device based on UTF-32 coding
US11816242B2 (en) Log compression and obfuscation using embeddings
KR102425916B1 (en) Device and method for lattice-based fuzzy extraction supporting variable length fuzzy data
US11050437B1 (en) Implementation of invertible functions using party logic
US11777527B1 (en) Dynamic permutation based coding for generating permuted bits and parity equations thereof
CN111291387B (en) File protection method and file processing system thereof
JP2018061170A (en) Coding program, coding method, encoder, decoding program, decoding method and decoder

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200722

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210907

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20211207

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220124

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20220531