An object of the present invention is to appropriately realize the guarantee of authenticity when managing an object with a two-dimensional code by using a technology related to a related two-dimensional code. A two-dimensional code generation method for generating a plurality of related two-dimensional codes associated with each other, wherein a non-public data code word is obtained, and a pre-substitution code block having a public data code word and an error correction code word A replacement code block in which the secret data code word is concealed is obtained by replacing a part of the code block before replacement with the secret data code word, and a related code block is obtained based on the data block after replacement. A plurality of related two-dimensional codes are generated by executing a generation step of generating a dimensional code a plurality of times, and when the secret data code word is obtained in each of the generation steps, the plurality of related Related code information for making it possible to specify that two-dimensional codes are associated with each other is included in the private data code word And wherein the Rukoto. [Selection] Figure 3
展开▼