ComfyUI Node
Symmetric Encrypt/Decrypt
A ComfyUI node in ARG Toolkit/Cryptography/Modern/Cipher with 9 inputs and 2 outputs.
Symmetric Encrypt/Decrypt
- text
- key
- iv
- tag
- nonce
- output
- tag
◄algorithmAES►
◄modesCBC►
◄modetrue►
◄min_tag_length16►
CategoryARG Toolkit/Cryptography/Modern/Cipher
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| text | BYTESLIKE | The message to encrypt or decrypt. Must be bytes. | |
| key | BYTESLIKE | The encryption key. Must be bytes. | |
| iv | BYTESLIKE | A random string to initialize from for modes. Use SystemRandom (Random Nonce Generator) to generate this. Note that is also acts like `tweak` for XTS. | |
| algorithm | COMBO | AES | The algorithm used for symmetric encryption |
| modes | COMBO | CBC | The mode used for symmetric encryption |
| mode | BOOLEAN | true | Toggle between encrypting and decrypting. |
| tagopt | BYTESLIKE | The 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_lengthopt | INT | 16 | The minimum length tag must be. Exclusively for GCM mode. |
| nonceopt | BYTESLIKE | A random nonce to instantiate from. Currently only for ChaCha20 |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| output | BYTESLIKE | — |
| tag | BYTESLIKE | — |