Skip to content

SM4 is a 128-bit block cipher, currently established as a national standard (GB/T 32907-2016) of China. Multiple block cipher modes are supported. When using CBC or ECB mode, the PKCS#7 padding scheme is used. SM4 Encrypt lives in the Cryptography category of the fx menu.

ParameterTypeRequiredDefaultDescription
Inputstringyes—Value to transform. Previous step output or a literal.
Keystringno—Argument value for this operation.
IVstringno—Argument value for this operation.
ModestringnoCBCChoose one of: CBC, CFB, OFB, CTR, ECB.
InputstringnoRawChoose one of: Raw, Hex.
OutputstringnoHexChoose one of: Hex, Raw.

Input is the primary value (previous step output or a literal).

TypeDescription
stringResult of the SM4 Encrypt transformation.
  • Wrong key, algorithm options, or malformed input typically raises an evaluation error — fix Input or options before re-running.
Run SM4 Encrypt

SM4 is a 128-bit block cipher, currently established as a national standard (GB/T 32907-2016) of China. Adjust optional parameters when the defaults do not match your payload.

  1. Set Input to the value to transform (previous step output or a literal).

  2. Review Key, IV, Mode, Input, Output and keep defaults unless your format requires otherwise.

  3. Confirm Output value shows the transformed result.