SM4 Encrypt

Encrypts with SM4, the Chinese national block cipher.

  • ID: sm4-encrypt
  • Category: Encryption / Encoding
  • Aliases: sm4, gb/t 32907

Arguments

ArgumentTypeDefaultConstraints
KeytoggleString""Formats: UTF-8, Hex, Base64, Latin1, Decimal. Default format: Hex
IVtoggleString""Formats: UTF-8, Hex, Base64, Latin1, Decimal. Default format: Hex
Modeoption"CBC"CBC, CFB, OFB, CTR, ECB
Inputoption"Raw"Raw, Hex
Outputoption"Hex"Raw, Hex
Paddingoption"PKCS#7"PKCS#7, None