ComfyUI ARG Toolkit
A collection of ComfyUI nodes for cryptography, steganography, encryption, decryption, and tools needed to both make and solve ARGs (Alternative Reality Games) and secret messages.
Nodes (110)
The WWI Cipher That Looks Exactly Like Secret-Agent Stuff
Five Letters, One Keyword
Five AES Modes in One Node, and the Nonce Trap That Will Bite You
The Keygen That Knows AES-SIV Needs Double the Bits
Encrypting Keys With Keys, RFC 3394 Style
The Key Wrap That Finally Lets You Encrypt Awkward-Sized Keys
A Little Math Goes a Long Way (If the Key Cooperates)
The Password-Hashing Champion, Now a ComfyUI Node
Check the Password Without Storing It
The Cipher So Simple You Could Write It on a Napkin
The Cipher That Feeds on Its Own Plaintext
Turn That =Padded Wall of Text Back Into Words
The Bifid's Big-Square Cousin With a Number for a Key
Vigenère's Symmetric Cousin (Same Key, Either Direction)
Fractionation Without a Key Word (Just a Number)
Decode That Wall of 0s and 1s
The Two-Second Check Before Your AES Blows Up
Combining Two Secrets Without Touching the Math
Shove Every Bit Left (and Watch the Format Survive)
The unary NOT that reverses bit patterns
Combine two strings bit-by-bit with the OR operator
Slide bytes over and see what falls out
The reversible operator that shows up everywhere in ARGs
Fast, modern, and currently fighting its own source code
Make a True/False flag actually readable
Bring BYTESLIKE back to readable text — hex, base64, or plain words
Turn text into BYTESLIKE — the gateway to every modern crypto node
The ROT node that starts every ARG
Every letter shifts a little more than the last
Modern authenticated encryption, the right way
A 32-byte key, freshly rolled every run — no inputs, no drama
The 'unbreakable' WWII-era puzzle that's mostly a vibe now
The keyword cipher that scrambles by column
Turn a shared secret into a proper key
Check that a derived key is what it should be — without guessing
The key-derivation variant that adds a salt
Verify a salt-based derived key, then trust the boolean
Equal bytes, without the timing side channel
Load a DER-encoded private key so the asymmetric nodes can use it
The DER public key loader that makes signature checks actually work
Generate real elliptic curve private keys — and export them as PEM or DER bytes
Turn a private key into a shareable public key — bytes and object, both
ECDSA signing node that lets you prove a message came from a specific key
Returns one boolean, settles the whole argument
Ed25519 private keys without the ECDSA baggage
Get an Ed25519 public key out in the format you actually need
Sign a message with Ed25519 — the friendly way to prove authorship
Check an EdDSA signature with one boolean — the message was signed or it wasn't
The One-Button Way to Mint a Fernet Key (And Why It Looks Like Garbage)
Fernet encryption in one node — a 32-byte key and a toggle
The digraph cipher that's genuinely fun to bury clues in
A Vigenère variant that turns a phone number into a cipher key
Hash anything to any length in ComfyUI
Turn those hex scribbles back into readable text
Turn any secret into a proper cryptographic key, the standards way
When the key material is already good, just stretch it
The expand-only checker that confirms a derived key is what it should be
Confirm two parties derived the same HKDF key without comparing bytes by hand
Pull the hidden message back out of that image
Bury a message in an image so no human eye can see it
The kitchen-sink key derivation node — NIST SP 800-108 counter mode
Check a derived key without ever handing out the key
One word scrambles the whole alphabet
MD5 hashing, for the puzzles where security doesn't matter
Morse code, in seven languages, without leaving the graph
The transposition cipher that handles repeated letters
A Polybius square and some arithmetic
Pad your block-cipher data to the right size (and unpad it back)
Turn a password into a real key with PBKDF2
Did this password derive to the right key? Ask the node.
Load a PEM private key into the graph
Load a PEM public key without the password drama
The digraph cipher that hid British secrets in WWI
Reduce every letter to two numbers
The 16th-century cipher that encrypts and decrypts the same way
Pull clean bytes out of corrupted data
Make your bytes survive a beating
The cipher that's its own undo button
Letters get ROT13, digits get ROT5, everyone's rotated
Rotate the whole printable ASCII set, punctuation included
Rotate the digits, leave the letters alone
Turn a passphrase into an actual encryption key
The polite way to check someone's passphrase
An ancient transposition you can explain in one sentence
The broken hash that's still perfect for puzzles
The hash you actually want, all six flavors in one node
The Keccak-era hash, when the puzzle wants the new thing
The all-purpose monoalphabetic swap
The Chinese national standard hash, for that one puzzle
Spectrograms in ComfyUI
Pull the hidden message back out of the pixels
Hide a message in the pixels of an image
The encoding that makes binary safe to copy-paste
The lowest level you'll ever need to look at
The format every ARG actually uses
Repeat a string, with a built-in surprise
AES, GCM, and every mode in between
The pack's supply of actual entropy
Delastelle's oddball, three keys and a pair of blanks
The three-dimensional Polybius cube, digitized
The Digraph-friendly Double Playfair
The Soviet spy cipher that's hiding a landmine under its default settings
The Vigenère cipher node that actually works — and the one everyone reaches for first
The node that turns a shared secret into an actual encryption key
The 'is this the right key?' node — constant-time key checking, minus the suspense
The payoff node for the whole X-series dance
Squeeze the exact bytes you want out of SHAKE
Useful, but its default settings will crash it
Derive a public key from your ECDH private key — the node that does it cleanly
Dumb in the best way, and it actually works
ComfyUI ARG Toolkit
A collection of ComfyUI nodes meant mostly for doing cryptography, steganography, encryption, decryption, and everything needed to both make and solve ARGs (Alternative Reality Games) and secret messages hidden within text or images (and hopefully audio) without ever leaving ComfyUI.
Might also double as a poor-man's cryptanalysis and steganography lab.
Quickstart
- Install ComfyUI.
- Install ComfyUI-Manager.
- Look up this extension in ComfyUI-Manager. If you are installing manually, clone this repository under
ComfyUI/custom_nodes. - Restart ComfyUI.
Features
- Classic ciphers and cryptography techniques (Caesar, Playfair, Vigénere, Foursquare,...) - currently powered by
secretpy. - Image steganography and invisible watermarking tools - currently powered by
steganoandinvisible-watermark. - Bitwise operators and string converters for use with other ciphers.
- Bytes-like datatype and encoders/decoders for many nodes in the node pack.
- Error correction codes for more robust operations - currently powered by
reedsolo - Multi-language Morse code encoder and decoder.
- Spectrogram to audio and vice versa.
- (WIP) Modern cryptographic encryption tools and functions - currently powered by
cryptography. - (Planned) Historical encoding and encrypting formats (Kansas City System, SNOW, SSTV,...) made user-friendly and available through a node interface.
- (Planned) Recreations of historical cipher machines (Enigma, Lorenz, M-209,...) within ComfyUI.
- (Planned) Audio spectrogram analysis tools.
- (Planned) ML-integrated steganography models.
- (Far Future plans) Post-quantum cryptography tools.
Testing methodology
Since this project started as an amateur project, the test files only cover the functions and most common use cases, not the edge cases or any automated testing yet. Many of the tests done are manual functionality tests done on ComfyUI and not unit tests. This can and will change on future releases.
Others
Related projects
If you like the idea behind this node pack, want to explore cryptography, steganography, ARGs, and more, please visit these projects and sites:
- Ciphereditor - Basically what this is doing, but more formalized and not a custom node pack sitting on top of an AI image generation platform.
- CyberChef - The Cyber Swiss Army Knife, and for a good reason.
- cryptii (Official link) - One of the more modern cryptography encrypt/decrypt sites out there.
- CrypTool - A good place to learn more about everything cryptography. CrypTool2 is probably one of the accidental inspiration for this project as well.
- dCode.fr - The original and most well known site for all things related to solving math, cryptography, and ARGs as they basically contain the most amount of tools out there.
- Game Detectives - A quite useful site to learn about how ARGs work and get standalone tools for learning and solving ARGs. Unfortunately, many of the tools listed on the ARG Toolbox are dead and either requires the Wayback Machine or finding a sketchy alternative.
Companion node packs
- ComfyUI-Custom-Scripts - Provides a lot of useful features and nodes in general for ComfyUI.
- ComfyUI-Crystools - System monitor extension for ComfyUI.
- ComfyUI_Invisible_Watermark - The main reason I even started this project in the first place, for making an "invisible watermark" node that left such an impression on me I decided to make my own.
- ComfyLiterals - Optional custom nodes for use with these nodes to provide or bypass certain limitations of ComfyUI.
License
This project is licensed under the GNU General Public License 3.0 (GPLv3). See the LICENSE file for full license details.