Chaos Decrypt
Chaos Decrypt only needs the two numbers you remember
- image
- IMAGE
Chaos Decrypt is the mirror image of Chaos Encrypt, in every sense. Feed it the scrambled IMAGE, give it the same integer key and the same mode, and it unwinds the static back into your original picture. It's from the same small Me-gumin/MeComfyuiEncrypt pack, and like its twin it's a deterministic scramble - a logistic-map keystream, not real encryption - so its whole job is being the exact inverse of what Encrypt did.
How it works
Encryption with the chaos nodes XORs (or mod-256-adds) a pseudo-random byte stream generated from your key. Because that stream is reproducible from the key alone, "decryption" is just running the same arithmetic the other way: XOR again to cancel out, or subtract mod 256 for addmod. No models, no GPU work, nothing to download - the source is a handful of lines of tensor math, and the pack's docstring is refreshingly honest that this is a teaching demo, not something to protect state secrets with.
The inputs that matter
Three inputs, two of them mandatory to match exactly:
- image (IMAGE) - the scrambled output from Chaos Encrypt, or from any Load Image node pointing at a saved chaos-scrambled PNG.
- key (INT) - must be the same integer used to encrypt. Different key, pure garbage.
- mode (xor / addmod) - must match what was chosen at encryption. XOR-encrypted + addmod-decrypt is a different operation, and you'll get noise, not a picture.
Output is one IMAGE - the recovered image. Wire it to a Save Image or Preview Image node. If you encrypted with the default 123456 and forgot to change it, well, that works too - anyone who knows the default can decrypt, which is the whole "not real security" point.
Installing it
Same pack as Chaos Encrypt - one install gets you all four nodes. ComfyUI Manager, search "MeComfyuiEncrypt", install, restart. Manual route:
git clone https://github.com/Me-gumin/MeComfyuiEncrypt.git ./custom_nodes/MeComfyuiEncrypt
cd custom_nodes/MeComfyuiEncrypt && pip install -r requirements.txt
Dependencies are torch, numpy, pycryptodome, pillow - no model files, no API keys. If the pack won't load at all, the usual suspect is a missing pycryptodome (both module files import at startup), so make sure that pip line actually ran.
Common issues
The overwhelming majority of "it didn't decrypt" reports for chaos nodes come down to two things. First, mismatched key or mode - check both against what you used to encrypt, because the node can't tell you're wrong; it just outputs noise. Second, the file was re-encoded somewhere along the way. Chaos mode depends on exact byte values, so a lossy JPEG round-trip or a screenshot ruins it permanently. If you encrypted, saved a PNG, decrypted immediately, and it worked, don't expect it to survive being posted to a chat app that recompresses on upload.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| key | INT | 123456 | — |
| mode | COMBO | xor | 2 options: xor, addmod |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |