ComfyUI Extension: ComfyUI-Cyber-Steganography
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.
Cyberpunk/Spy-craft steganography nodes for ComfyUI. Hide secret text messages inside AI-generated images using LSB (Least Significant Bit) steganography. Features encryption with optional password key. Nodes: StegoEncode (hide text), StegoDecode (reveal text).
Looking for a different extension?
Custom Nodes (2)
README
ComfyUI-Cyber-Steganography 🕵️♂️💻
"The best place to hide a secret is in plain sight."
A Cyberpunk/Spy-craft custom node pack for ComfyUI that allows you to hide secret text messages inside AI-generated images using Steganography (LSB).
This tool acts as a "Digital Watermarking" or "Secret Comm Channel" for agents operating in the latent space.
Features
- Stego Encode (The Hider): Embeds a secret text string into an image.
- Stego Decode (The Revealer): Extracts the hidden text from an image.
- Encryption: Optional key-based XOR encryption for an extra layer of security.
- No External Dependencies: Uses pure Python and Pillow (which ComfyUI already uses).
Installation
- Navigate to your ComfyUI
custom_nodesdirectory:cd ComfyUI/custom_nodes/ - Clone this repository (or just copy the folder):
git clone https://github.com/yourusername/ComfyUI-Cyber-Steganography.git - Restart ComfyUI.
Usage
Hiding a Secret (StegoEncode)
- Load an image or generate one.
- Connect the image to the Stego Encode node.
- Enter your secret message in the
textwidget. - (Optional) Enter a
keyto encrypt the message. - Connect the output image to a
Save Imagenode or continue your workflow.
Revealing a Secret (StegoDecode)
- Load an image that contains a secret message.
- Note: Steganography is fragile. Resizing, compressing (JPEG), or altering the image will destroy the message. Use PNG format.
- Connect the image to the Stego Decode node.
- (Optional) Enter the
keyif one was used during encoding. - Connect the output
textto aShowTextnode or inspect the output.
Technical Details
This node uses Least Significant Bit (LSB) steganography.
- It modifies the last bit of the Red, Green, and Blue channels of the pixels to store data.
- Data format:
[32-bit Length Header] + [Message Bits]. - Encryption: Simple XOR cipher if a key is provided.
Disclaimer
This tool is for educational and artistic purposes. It is not military-grade encryption. Do not use for critical security.
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.