Nodes/ComfyUI ARG Toolkit/Symmetric Encrypt/Decrypt
ComfyUI Node

Symmetric Encrypt/Decrypt

A ComfyUI node in ARG Toolkit/Cryptography/Modern/Cipher with 9 inputs and 2 outputs.

By AzelusLightvale·Created 11 months ago·Updated 25 days ago· 1
Symmetric Encrypt/Decrypt
  • text
  • key
  • iv
  • tag
  • nonce
  • output
  • tag
algorithmAES
modesCBC
modetrue
min_tag_length16
CategoryARG Toolkit/Cryptography/Modern/Cipher

Inputs (9)

NameTypeDefaultDescription
textBYTESLIKEThe message to encrypt or decrypt. Must be bytes.
keyBYTESLIKEThe encryption key. Must be bytes.
ivBYTESLIKEA random string to initialize from for modes. Use SystemRandom (Random Nonce Generator) to generate this. Note that is also acts like `tweak` for XTS.
algorithmCOMBOAESThe algorithm used for symmetric encryption
modesCOMBOCBCThe mode used for symmetric encryption
modeBOOLEANtrueToggle between encrypting and decrypting.
tagoptBYTESLIKEThe tag bytes to verify during decryption. Exclusively for GCM mode. When encrypting this must be None. When decrypting, it may be None if the tag is supplied on finalization using finalize_with_tag(). Otherwise, the tag is mandatory.
min_tag_lengthoptINT16The minimum length tag must be. Exclusively for GCM mode.
nonceoptBYTESLIKEA random nonce to instantiate from. Currently only for ChaCha20

Outputs (2)

NameTypeDescription
outputBYTESLIKE
tagBYTESLIKE