A method for verifying a two-dimensional code, the method comprising: parsing an original two-dimensional code into a two-dimensional array; generating,using the two-dimensional array, an image according to a preset pattern, the generating comprising: i) parsing the preset pattern into a binary image, ii) performing a bit operation on a value of a corresponding element in the two-dimensional array according to a pixel value of each pixel in the binary image, the performing comprising: a) in a case where a pixel value of a pixel in the binary image is 0, if the value of the corresponding element in the two-dimensional array is 1, changing the corresponding value to 0, or if the value of the corresponding element in the two-dimensional array is 0, changing the corresponding value to null and b) in a case where a pixel value of a pixel in the binary image is 1, if the value of the corresponding element in the two-dimensional array is 1, changing the corresponding value to null, or if the value of the corresponding element in the two-dimensional array is 0, changing the corresponding value to 1, and iii) generating the image based on a result of the bit operation; outputting the image to a transparent carrier using an output device; overlapping the output image and the original two-dimensional code; and verifying the original two-dimensional code, the verifying comprising determining whether a pattern obtained after overlapping the output image and the original two-dimensional code is the preset pattern, the verifying comprising either: a) determining that the original two-dimensional code is not changed in response to determining that the pattern obtained after the overlapping is the preset pattern, or b) determining that the original two-dimensional code has been changed in response to determining that the pattern obtained after the overlapping is not the preset pattern. parsing an original two-dimensional code into a two-dimensional array; generating,using the two-dimensional array, an image according to a preset pattern, the generating comprising: i) parsing the preset pattern into a binary image, ii) performing a bit operation on a value of a corresponding element in the two-dimensional array according to a pixel value of each pixel in the binary image, the performing comprising: a) in a case where a pixel value of a pixel in the binary image is 0, if the value of the corresponding element in the two-dimensional array is 1, changing the corresponding value to 0, or if the value of the corresponding element in the two-dimensional array is 0, changing the corresponding value to null and b) in a case where a pixel value of a pixel in the binary image is 1, if the value of the corresponding element in the two-dimensional array is 1, changing the corresponding value to null, or if the value of the corresponding element in the two-dimensional array is 0, changing the corresponding value to 1, and iii) generating the image based on a result of the bit operation; i) parsing the preset pattern into a binary image, ii) performing a bit operation on a value of a corresponding element in the two-dimensional array according to a pixel value of each pixel in the binary image, the performing comprising: a) in a case where a pixel value of a pixel in the binary image is 0, if the value of the corresponding element in the two-dimensional array is 1, changing the corresponding value to 0, or if the value of the corresponding element in the two-dimensional array is 0, changing the corresponding value to null and b) in a case where a pixel value of a pixel in the binary image is 1, if the value of the corresponding element in the two-dimensional array is 1, changing the corresponding value to null, or if the value of the corresponding element in the two-dimensional array is 0, changing the corresponding value to 1, and a) in a case where a pixel value of a pixel in the binary image is 0, if the value of the corresponding element in the two-dimensional array is 1, changing the corresponding value to 0, or if the value of the corresponding element in the two-dimensional array is 0, changing the corresponding value to null and b) in a case where a pixel value of a pixel in the binary image is 1, if the value of the corresponding element in the two-dimensional array is 1, changing the corresponding value to null, or if the value of the corresponding element in the two-dimensional array is 0, changing the corresponding value to 1, and iii) generating the image based on a result of the bit operation; outputting the image to a transparent carrier using an output device; overlapping the output image and the original two-dimensional code; and verifying the original two-dimensional code, the verifying comprising determining whether a pattern obtained after overlapping the output image and the original two-dimensional code is the preset pattern, the verifying comprising either: a) determining that the original two-dimensional code is not changed in response to determining that the pattern obtained after the overlapping is the preset pattern, or b) determining that the original two-dimensional code has been changed in response to determining that the pattern obtained after the overlapping is not the preset pattern. a) determining that the original two-dimensional code is not changed in response to determining that the pattern obtained after the overlapping is the preset pattern, or b) determining that the original two-dimensional code has been changed in response to determining that the pattern obtained after the overlapping is not the preset pattern.