HomeSM4 Block Cipher Algorithm

SM4 Block Cipher Algorithm

Chinese commercial cryptography standard SM4 algorithm, 128-bit block symmetric encryption, supporting CBC/ECB/CTR modes with automatic key and IV generation

SM4 Block Cipher

Encrypt

Decrypt

SM Cryptography Documentation

SM4 Block Cipher

SM4 is a block cipher algorithm specified in Chinese National Standard GB/T 32907, using 128-bit blocks and 128-bit keys, supporting ECB, CBC, CTR and other modes.

Common Applications

Data encryption, key exchange, VPN and secure channels

Related Standards

GB/T 32907 (SM4 Block Cipher Algorithm)

Security Notes

Keys and IVs should be randomly generated and stored securely

Frequently Asked Questions

Why use Chinese National Cryptography algorithms?

Chinese National Cryptography algorithms are Chinese commercial cryptography standards widely used in finance, government, defense and other fields. They have all passed evaluation and certification by the national cryptography management department, ensuring security.

What are the differences between SM2, SM3, and SM4?

SM2 is used for asymmetric encryption and digital signatures, SM3 is used for data hashing and integrity verification, and SM4 is used for symmetric encryption. The three are typically used together to implement a complete security solution.

Data is processed locally in your browser by default and will not be uploaded to any server. Upload will be clearly indicated if required.

© 2026 See-Tool. All rights reserved. | Contact Us