1. A method for generating an anti-forgery image, comprising: determining, according to a rule for setting bits, a quantity of bits in an image cell of an anti-forgery image to be generated, data point locations in the bits and a quantity of the data point locations, a quantity of data point locations, at which a code point exists, in the bits, code value bits among the bits and a quantity of the code value bits, and pseudo-random variable bits among the bits and a quantity of the pseudo-random variable bits; determining a combination quantity of each of the bits according to the quantity of data point locations in the bits and the quantity of data point locations, at which a code point exists, in the bits, wherein the combination quantity of each of the bits is the number of different combinations of data point locations and code points in the bit; acquiring a width, height and code numeric value of the anti-forgery image to be generated, and requesting a memory space for the anti-forgery image to be generated according to the width and height of the anti-forgery image to be generated, wherein a value range of the code numeric value is determined by the combination quantity of each of the bits and the quantity of code value bits among the bits; determining positions of the code points in the bits according to the code numeric value, the combination quantity of each of the bits, the quantity of the code value bits among the bits and the quantity of the pseudo-random variable bits among the bits; determining the image cell's initial coordinate in the anti-forgery image to be generated according to a rule for setting coordinates; and drawing the image cell in the memory space according to the image cell's initial coordinate in the anti-forgery image to be generated, wherein the drawn image cell forms the anti-forgery image.