This tool supports SM2 key generation, encryption, and decryption with multiple key/cipher formats, all processed locally in the browser.
Key Features
- Generate SM2 public/private keys
- Support
C1C3C2andC1C2C3cipher modes - Input/output formats: Text/Base64/Hex/Spaced Hex/C-style Hex
- One-click copy for results
Steps
- Generate or paste your key pair.
- Select cipher mode and formats.
- Encrypt with public key and plaintext, decrypt with private key and ciphertext.
- Run and copy the output.
Use Cases
- Frontend demos under Chinese cryptography standards
- SM2 interoperability testing in enterprise systems
- Learning and validating national crypto workflows
Notes
- Use public key for encryption and private key for decryption.
- Both sides must agree on cipher mode (
C1C3C2orC1C2C3). - For production, combine with secure key management and access control.