SM4 Encrypt / Decrypt
SM4 Encrypt / Decrypt, processed in your browser with copy and download.
SM4 Encrypt / Decrypt
Processing stays in this browser. Your input is not uploaded.
Processed content stays in this page’s memory and cannot be recovered after clearing or closing.
About this tool
SM4 Encrypt / Decrypt, processed in your browser with copy and download. Runs in a browser Worker. Example keys/IVs are for testing; random keys can be generated. ECB/CBC and other unauthenticated modes do not verify integrity. CFB uses full-block feedback; CTR a full big-endian counter. CTS is CBC-CS3 and requires no padding. Zeros cannot preserve trailing zero bytes. Input and output are not uploaded. Metrics contain only status, duration, count and copy/download actions.
How to use
- Load the example or enter input and select an operation.
- Run the tool; cancel at any time.
- Review, copy or download the TXT result. Editing clears old output.
Frequently asked questions
What happens to invalid input?
Invalid formats, out-of-range numbers and oversized outputs are rejected. Follow the example; inputs are not silently repaired.
Discussion & comments
Share your experience and discover more ways to use this tool.
Loading comments…