Addressing the anti-counterfeiting and verification issues of handwritten signatures, a traceable offline handwritten signature anti-counterfeiting and verification system is proposed. The system consists of four parts: a front-end mobile terminal application system, a database storage system, a backend management system, and a portable dynamic encoding stamp device. The system can achieve traceability of signatures, thereby more effectively preventing counterfeit signatures. The front-end mobile terminal application system can generate a unique two-dimensional code based on the relevant information of the signature file and send it to the database system for storage, while also sending it to the portable dynamic encoding stamp device. The portable dynamic encoding stamp device can receive the dynamic two-dimensional code from the front-end mobile terminal application system and produce a two-dimensional code imprint. The database system can store information such as signature file details, corresponding QR codes, and signature photos, which can be used for traceability queries and verification. The proposed system utilizes the SHA algorithm to generate unique codes and can generate corresponding QR code prints on a portable dynamic encoding device. When signing, a QR code seal is affixed, and during signature verification, the QR code on the signature file can be compared with the information in the database to verify the authenticity of the signature. When needed, signature photos stored in the database can also be used for further verification through machine learning. Compared with traditional signature verification methods, this method has better effectiveness.