SM4 Encryption/Decryption Tool
SM4 block symmetric encryption algorithm.
Key:
IV:
Input
Result
Result
What is SM4?
SM4 is a 128-bit symmetric block cipher published by the State Cryptography Administration of China, with security comparable to AES-128.
Core Value
- High efficiency
- Simple structure
- Low resource use
- Multiple modes
Work Modes
- ECB (Electronic Codebook)
- CBC (Cipher Block Chaining)
- CFB (Cipher Feedback)
- OFB (Output Feedback)
- CTR (Counter Mode)
Scenarios
- WAPI Security
- Disk/File encryption
- Database encryption
- Real-time data security
Technical Features
- 32-round iteration
- Equivalent decryption
- PKCS7 etc. support
- High throughput
🚀 How to Use
- Config: Select mode (CBC recommended) and padding, then enter a 16-byte key.
- Run: Switch between 'Encrypt' and 'Decrypt', enter text to get results.
- Key: Use 'Random' to generate a strong encryption key.
💡 FAQ
SM4 or AES?
Both are secure. SM4 is preferred for compliance with Chinese national standards and government requirements.
Why did decryption fail?
Ensure the key, mode, padding, and IV match exactly with those used for encryption.