Abstract:To solve the problem in security and traceability during production and selling of dark tea, the anti-counterfeiting method of two-dimension code was developed and simplified by Hash function through encrypting product number, which is applied to design the bidirectional traceability model. The model can make anti-fake and trace upward for the source of the dark tea and downward provide statistical data and data analysis that can help the manufacturers and vendors make business decisions.