The generation and identification system of arbitrary ternary code is essentially the collection and processing of images and data information, which can be applied to the anti-counterfeiting of products, financial bills, valuable securities including coins, identity cards and all certificates.