SM4 Encrypt/Decrypt

Encrypt and decrypt data using SM4 — Chinese national standard block cipher (GB/T 32907)

How to Use SM4 Encrypt/Decrypt

  1. Enter or generate a 128-bit key (16 bytes) in hexadecimal format
  2. Select the encryption mode — ECB (simpler, less secure) or CBC (recommended, requires IV). For CBC mode, enter or generate a 128-bit IV (16 bytes)
  3. Choose Encrypt or Decrypt, enter your data, select the output format, and click the action button

Enable JavaScript to use these tools.