China Compliance Toolkit: Validators & SM Crypto
Chinese ID card, USCC business code, license plate, VIN, passport MRZ and UPC validation, plus SM2/SM3/SM4 national cryptography — 9 tools in one place, all running locally in your browser.
Deep-dive guides
- China ID Card Number: Checksum Algorithm Explained
- China USCC (Unified Social Credit Code) Validation Guide
- China License Plate Format Rules (incl. NEV)
- SM2 vs RSA: Security, Performance and Compliance
- SM3 vs SHA-256: How to Choose and Verify
- VIN Check Digit Algorithm Explained
- China MLPS Self-Check Checklist
Frequently asked questions
Do these validators upload my data?
No. Every check and SM-series computation runs entirely in your browser — ID numbers, credit codes and ciphertexts never leave your device.
How is the China ID card checksum computed?
The last digit of a Chinese resident ID card number is calculated with ISO 7064 MOD 11-2 over the first 17 digits, using weights 7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2.
Is the USCC the same as a business license number?
Yes. Since the 2015 "three-in-one" reform, the business license number is the 18-digit Unified Social Credit Code, with a MOD 31 check character at position 18.
How do SM2/SM3/SM4 relate to international algorithms?
SM2 parallels ECDSA/ECDH, SM3 parallels SHA-256, and SM4 parallels AES-128. They are Chinese national cryptography standards (GB/T 32918/32905/32907) required for commercial cryptography compliance in China.
Can I use generated UPC barcodes for real products?
Generated codes are meant for test data only: by default we draw from a small fixed set of two-digit prefixes, but we have not verified how each marketplace treats those ranges, so do not list with them. For real retail listings you must obtain your own GS1 (or China ANCC) company prefix first.
Nothing you check ever leaves your device
Every tool above runs 100% in the browser — no upload, no registration, no tracking of your inputs. Compliance rules described here are general references; always confirm with the issuing authority.