Feedback

SM4 Encryption and Decryption

📖 Description

1. Why Choose SM4 for Domestic Projects?

When advancing "Xinchuang" transformation and ensuring the security of core systems, SM4 holds an irreplaceable position:


2. Core Feature Analysis

This site's tool integrates all encryption modes of SM4, ensuring 100% compatibility with backend systems:

A. Supports Multiple Encryption Modes
B. Automatic Padding Handling
C. Encoding and Formatting
D. Privacy Protection: Browser-Side Local Computation

3. Brief Operation Guide

Encryption (Hide Data):
  1. Input Plaintext: Enter text or Hex in the plaintext area.
  2. Set Key: Enter a 16-byte (128-bit) key (e.g., 1234567812345678).
  3. Select Mode: Choose CBC or ECB (CBC with a random IV is recommended).
  4. Click Encrypt: Obtain the ciphertext and click "Copy" to save it.
Decryption (Recover Data):
  1. Paste Ciphertext: Paste the ciphertext in Base64 or Hex format.
  2. Input Key: Enter the same 16-byte key used for encryption.
  3. Click Decrypt: Instantly recover the original plaintext information.

4. Common Parameter Reference Table

Parameter Specification Description
Key 16 Bytes (128 bits) The unique core credential for encryption/decryption.
Block Length 128 bits SM4 processes fixed 16-byte data blocks each time.
IV 16 Bytes (CBC only) A random factor increasing ciphertext randomness.
Output Format Base64 / Hex The visual representation format of the ciphertext.

5. Why Choose This Site's SM4 Assistant?

📖 Recommendation