Online Toolbox
switching mode
tool collection
put it on the desktop
inclusion application
tool search
  • encryption
  • decryption
encrypted content:
key (128 bits):
iv (available in cbc encryption mode):
key/iv data format:
encryption mode:
fill mode:
encrypted result data format:
start encryption↓ clear
decrypted content:
key (128 bits):
iv (available in cbc encryption mode):
decrypted content data format:
key/iv data format:
encryption mode:
fill mode:
start encryption↓ clear

sm4 encryption/decryption Introduction

About SM4:

1, State secret SM4 is a block cipher algorithm developed by the State Cryptography Administration of China, is the industry standard of China's commercial cipher, the official name is "GM/T 0002-2012 SM4 block cipher Algorithm".

2, the state secret SM4 algorithm is a symmetric key encryption algorithm, the key length is 128 bits, the packet length is 128 bits.

3, SM4 algorithm in the design of similar to the international Advanced encryption standard (AES) algorithm structure, but the specific algorithm details are different.

4, the SM4 algorithm contains 32 rounds of nonlinear iterative process, each round uses a round key, the round key is generated by the master key through the key extension algorithm.

5, the state secret SM4 algorithm has been widely used in finance, government affairs, e-commerce and other fields, and is an important part of China's information security system.

6, the tool data are processed in the local browser, not uploaded to the network server, please feel free to use!

Instructions for use:

1, key /IV data format: please select the key /IV corresponding data format, the tool will automatically convert to the required HEX type value.

2. If the data format of the key /IV is text, select the text format for key /IV data format; if it is base64, select Base64 for key /IV data format.

3, "Encryption result data format" You can select the input format of the encrypted result, HEX format is recommended.

4, the selection type of 'decryption content data format' should correspond to the content format entered in 'decryption content', if the decryption content is Base64, 'decryption content data format' select Base64.

5. If 'encryption mode' is' CBC ', you need to enter the IV value. Please note the input format.

Internet Business Promoter