Extensions/ComfyUI ARG Toolkit
ComfyUI Extension

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.

By AzelusLightvale·Created about a year ago·Updated 6 days ago· 3
AzelusLightvale/ComfyUI-ARG-Toolkit
Nodes139
On cloudLocal install
CategoryARG Toolkit/Cryptography/Classical, ARG Toolkit/Cryptography/Modern/Authenticated
Stars3
Updated6 days ago

Nodes (139)

ADFGVX Cipher

The WWI Cipher That Looks Exactly Like Secret-Agent Stuff

ARG Toolkit/Cryptography/Classical
ADFGX Cipher

Five Letters, One Keyword

ARG Toolkit/Cryptography/Classical
AES-based Authenticated Encryption

Five AES Modes in One Node, and the Nonce Trap That Will Bite You

ARG Toolkit/Cryptography/Modern/Authenticated
AES-based Authenticated Key Generator

The Keygen That Knows AES-SIV Needs Double the Bits

ARG Toolkit/Cryptography/Modern/Authenticated
AES Key Wrap

Encrypting Keys With Keys, RFC 3394 Style

ARG Toolkit/Cryptography/Modern/Key Wrap
AES Key Wrap With Padding

The Key Wrap That Finally Lets You Encrypt Awkward-Sized Keys

ARG Toolkit/Cryptography/Modern/Key Wrap
Affine Cipher

A Little Math Goes a Long Way (If the Key Cooperates)

ARG Toolkit/Cryptography/Classical
Argon2id Key Derivation

The Password-Hashing Champion, Now a ComfyUI Node

ARG Toolkit/Cryptography/Modern/Key Derivation
Argon2id Key Verification

Check the Password Without Storing It

ARG Toolkit/Cryptography/Modern/Key Derivation
Atbash (Reverse Alphabet) Cipher

The Cipher So Simple You Could Write It on a Napkin

ARG Toolkit/Cryptography/Classical
Autokey Cipher

The Cipher That Feeds on Its Own Plaintext

ARG Toolkit/Cryptography/Classical
Base64 to String Converter

Turn That =Padded Wall of Text Back Into Words

ARG Toolkit/Utilities/Converter
Bazeries Cipher

The Bifid's Big-Square Cousin With a Number for a Key

ARG Toolkit/Cryptography/Classical
Beaufort Cipher

Vigenère's Symmetric Cousin (Same Key, Either Direction)

ARG Toolkit/Cryptography/Classical
Bifid Cipher

Fractionation Without a Key Word (Just a Number)

ARG Toolkit/Cryptography/Classical
Binary to String Converter

Decode That Wall of 0s and 1s

ARG Toolkit/Utilities/Converter
Bits Counter

The Two-Second Check Before Your AES Blows Up

ARG Toolkit/Utilities
Bitwise AND Operator

Combining Two Secrets Without Touching the Math

ARG Toolkit/Utilities/Bitwise
Bitwise Left Shift Operator

Shove Every Bit Left (and Watch the Format Survive)

ARG Toolkit/Utilities/Bitwise
Bitwise NOT Operator

The unary NOT that reverses bit patterns

ARG Toolkit/Utilities/Bitwise
Bitwise OR Operator

Combine two strings bit-by-bit with the OR operator

ARG Toolkit/Utilities/Bitwise
Bitwise Right Shift Operator

Slide bytes over and see what falls out

ARG Toolkit/Utilities/Bitwise
Bitwise XOR Operator

The reversible operator that shows up everywhere in ARGs

ARG Toolkit/Utilities/Bitwise
BLAKE2 Hashing

Fast, modern, and currently fighting its own source code

ARG Toolkit/Cryptography/Modern/Hashing
Boolean Outputter

Make a True/False flag actually readable

ARG Toolkit/Debugging
Bytes-like Object Decode

Bring BYTESLIKE back to readable text — hex, base64, or plain words

ARG Toolkit/Utilities/Converters
Bytes-like Object Encode

Turn text into BYTESLIKE — the gateway to every modern crypto node

ARG Toolkit/Utilities/Converters
Caesar (ROT) Cipher

The ROT node that starts every ARG

ARG Toolkit/Cryptography/Classical
Progressive Caesar Cipher

Every letter shifts a little more than the last

ARG Toolkit/Cryptography/Classical
ChaCha20Poly1305 Encryption

Modern authenticated encryption, the right way

ARG Toolkit/Cryptography/Modern/Authenticated
ChaCha20Poly1305 Key Generator

A 32-byte key, freshly rolled every run — no inputs, no drama

ARG Toolkit/Cryptography/Modern/Authenticated
Chao Cipher

The 'unbreakable' WWII-era puzzle that's mostly a vibe now

ARG Toolkit/Cryptography/Classical
Columnar Transposition Cipher

The keyword cipher that scrambles by column

ARG Toolkit/Cryptography/Classical
ConcatKDF (Hash) Key Derivation

Turn a shared secret into a proper key

ARG Toolkit/Cryptography/Modern/Key Derivation
ConcatKDF (Hash) Key Verification

Check that a derived key is what it should be — without guessing

ARG Toolkit/Cryptography/Modern/Key Derivation
ConcatKDF (HMAC) Key Derivation

The key-derivation variant that adds a salt

ARG Toolkit/Cryptography/Modern/Key Derivation
ConcatKDF (HMAC) Key Verification

Verify a salt-based derived key, then trust the boolean

ARG Toolkit/Cryptography/Modern/Key Derivation
Constant Time Compare

Equal bytes, without the timing side channel

ARG Toolkit/Cryptography/Modern/Constant Time
DER Serialized Private Key Loader

Load a DER-encoded private key so the asymmetric nodes can use it

ARG Toolkit/Cryptography/Modern/Asymmetric
DER Serialized Public Key Loader

The DER public key loader that makes signature checks actually work

ARG Toolkit/Cryptography/Modern/Asymmetric
Elliptic Curve Private Key Bytes

Generate real elliptic curve private keys — and export them as PEM or DER bytes

ARG Toolkit/Cryptography/Modern/Asymmetric
Elliptic Curve Public Key Bytes

Turn a private key into a shareable public key — bytes and object, both

ARG Toolkit/Cryptography/Modern/Asymmetric
Elliptic Curve Signature Sign

ECDSA signing node that lets you prove a message came from a specific key

ARG Toolkit/Cryptography/Modern/Asymmetric
Elliptic Curve Signature Verify

Returns one boolean, settles the whole argument

ARG Toolkit/Cryptography/Modern/Asymmetric
EdDSA Private Key Bytes

Ed25519 private keys without the ECDSA baggage

ARG Toolkit/Cryptography/Modern/Asymmetric
EdDSA Public Key Bytes

Get an Ed25519 public key out in the format you actually need

ARG Toolkit/Cryptography/Modern/Asymmetric
EdDSA Signature Generator

Sign a message with Ed25519 — the friendly way to prove authorship

ARG Toolkit/Cryptography/Modern/Asymmetric
EDDSA Message Verification

Check an EdDSA signature with one boolean — the message was signed or it wasn't

ARG Toolkit/Cryptography/Modern/Asymmetric
Fernet Key Generator

The One-Button Way to Mint a Fernet Key (And Why It Looks Like Garbage)

ARG Toolkit/Cryptography/Modern
Fernet Symmetric Key Encryption

Fernet encryption in one node — a 32-byte key and a toggle

ARG Toolkit/Cryptography/Modern
Foursquare Cipher

The digraph cipher that's genuinely fun to bury clues in

ARG Toolkit/Cryptography/Classical
Gronsfeld Cipher

A Vigenère variant that turns a phone number into a cipher key

ARG Toolkit/Cryptography/Classical
SHAKE Hashing

Hash anything to any length in ComfyUI

ARG Toolkit/Cryptography/Modern/Hashing
Hexadecimal to String Converter

Turn those hex scribbles back into readable text

ARG Toolkit/Utilities/Converter
HKDF Key Derivation

Turn any secret into a proper cryptographic key, the standards way

ARG Toolkit/Cryptography/Modern/Key Derivation
HKDF (Expand Only) Key Derivation

When the key material is already good, just stretch it

ARG Toolkit/Cryptography/Modern/Key Derivation
HKDF (Expand Only) Key Verification

The expand-only checker that confirms a derived key is what it should be

ARG Toolkit/Cryptography/Modern/Key Derivation
HKDF Key Verification

Confirm two parties derived the same HKDF key without comparing bytes by hand

ARG Toolkit/Cryptography/Modern/Key Derivation
Invisible Watermark Decode

Pull the hidden message back out of that image

ARG Toolkit/Steganography
Invisible Watermark Encode

Bury a message in an image so no human eye can see it

ARG Toolkit/Steganography
KBKDF Key Derivation

The kitchen-sink key derivation node — NIST SP 800-108 counter mode

ARG Toolkit/Cryptography/Modern/Key Derivation
KBKDF Key Verification

Check a derived key without ever handing out the key

ARG Toolkit/Cryptography/Modern/Key Derivation
Keyword Cipher

One word scrambles the whole alphabet

ARG Toolkit/Cryptography/Classical
MD5 Hashing

MD5 hashing, for the puzzles where security doesn't matter

ARG Toolkit/Cryptography/Modern/Hashing
ML-DSA Private Key Bytes

A post-quantum private key, generated inside your node graph

ARG Toolkit/Cryptography/Modern/Asymmetric
ML-DSA Public Key Bytes

The half of the keypair you're allowed to hand out

ARG Toolkit/Cryptography/Modern/Asymmetric
ML-DSA Signature Generator

Signing a message inside ComfyUI — and the bug that stops you wiring it up

ARG Toolkit/Cryptography/Modern/Asymmetric
ML-DSA Message Verification

One boolean, and it can be false for the wrong reason

ARG Toolkit/Cryptography/Modern/Asymmetric
Morse Code

Morse code, in seven languages, without leaving the graph

ARG Toolkit/Utilities/Converter
Myszkowski Transposition Cipher

The transposition cipher that handles repeated letters

ARG Toolkit/Cryptography/Classical
Nihilist Cipher

A Polybius square and some arithmetic

ARG Toolkit/Cryptography/Classical
Symmetrical Padding

Pad your block-cipher data to the right size (and unpad it back)

ARG Toolkit/Cryptography/Modern/Padding
PBKDF2HMAC Key Derivation

Turn a password into a real key with PBKDF2

ARG Toolkit/Cryptography/Modern/Key Derivation
PBKDF2HMAC Key Verification

Did this password derive to the right key? Ask the node.

ARG Toolkit/Cryptography/Modern/Key Derivation
PEM Serialized Private Key Loader

Load a PEM private key into the graph

ARG Toolkit/Cryptography/Modern/Asymmetric
PEM Serialized Public Key Loader

Load a PEM public key without the password drama

ARG Toolkit/Cryptography/Modern/Asymmetric
Playfair Cipher

The digraph cipher that hid British secrets in WWI

ARG Toolkit/Cryptography/Classical
Polybius Square Cipher

Reduce every letter to two numbers

ARG Toolkit/Cryptography/Classical
Porta Cipher

The 16th-century cipher that encrypts and decrypts the same way

ARG Toolkit/Cryptography/Classical
Reed-Solomon Decode

Pull clean bytes out of corrupted data

ARG Toolkit/Utilities/Error Correction
Reed-Solomon Encode

Make your bytes survive a beating

ARG Toolkit/Utilities/Error Correction
Rotate-13 Cipher

The cipher that's its own undo button

ARG Toolkit/Cryptography/Classical
Rotate-18 Cipher

Letters get ROT13, digits get ROT5, everyone's rotated

ARG Toolkit/Cryptography/Classical
Rotate-47 Cipher

Rotate the whole printable ASCII set, punctuation included

ARG Toolkit/Cryptography/Classical
Rotate-5 Cipher

Rotate the digits, leave the letters alone

ARG Toolkit/Cryptography/Classical
Rotor Machine State Descriptor

Print the whole machine in plain text

ARG Toolkit/Cryptography/Classical/Rotor Machines
Rotor Machine Encrypt/Decrypt

Where the cipher actually happens — and where your punctuation goes to die

ARG Toolkit/Cryptography/Classical/Rotor Machines
Rotor Machine State

Wiring an Enigma by hand, one node at a time

ARG Toolkit/Cryptography/Classical/Rotor Machines
Rotor Machine Rotor Mapper

The stage that changes alphabets, and the default with a typo in it

ARG Toolkit/Cryptography/Classical/Rotor Machines
Rotor Machine Permutation

Reflector, entry wheel, plugboard

ARG Toolkit/Cryptography/Classical/Rotor Machines
Rotor Machine Positions

Your key setting is one short string, and it has to match the slots

ARG Toolkit/Cryptography/Classical/Rotor Machines
Rotor Machine Preset Stepper

Two stepping behaviours, one trap called k

ARG Toolkit/Cryptography/Classical/Rotor Machines
Rotor Machine Rotor

One scrambler wheel, wired by hand, notched by a letter

ARG Toolkit/Cryptography/Classical/Rotor Machines
Rotor Machine Rule-Based Stepper

Write your own stepping rules, one line per wheel

ARG Toolkit/Cryptography/Classical/Rotor Machines
RSA Decrypt Data

The mirror node, and why it says decryption failed

ARG Toolkit/Cryptography/Modern/Asymmetric
RSA Encrypt Data

For wrapping keys and short messages, not hiding pictures

ARG Toolkit/Cryptography/Modern/Asymmetric
RSA Private Key Bytes

The key factory hiding in a ComfyUI pack

ARG Toolkit/Cryptography/Modern/Asymmetric
RSA Private Numbers into Key

Rebuild a private key from p, q and d (mind the output labels)

ARG Toolkit/Cryptography/Modern/Asymmetric
RSA Private Numbers Values

Seven integers out of one opaque key

ARG Toolkit/Cryptography/Modern/Asymmetric
RSA Public Key Bytes

One mode throws the private half away

ARG Toolkit/Cryptography/Modern/Asymmetric
RSA Public Numbers into Key

All an RSA public key ever was, is two numbers

ARG Toolkit/Cryptography/Modern/Asymmetric
RSA Public Numbers Values

Pulling n and e out of a key you can't read

ARG Toolkit/Cryptography/Modern/Asymmetric
RSA Restore Private Exponent

You've got the primes, now get d back

ARG Toolkit/Cryptography/Modern/Asymmetric
RSA Restore Prime Factors

Turn a leaked d into p and q

ARG Toolkit/Cryptography/Modern/Asymmetric
RSA Signature Signer

Stamp your workflow's output so anyone can check it

ARG Toolkit/Cryptography/Modern/Asymmetric
RSA Signature Verification

One boolean, four ways to get False

ARG Toolkit/Cryptography/Modern/Asymmetric
Scrypt Key Derivation

Turn a passphrase into an actual encryption key

ARG Toolkit/Cryptography/Modern/Key Derivation
Scrypt Key Verification

The polite way to check someone's passphrase

ARG Toolkit/Cryptography/Modern/Key Derivation
Scytale Cipher

An ancient transposition you can explain in one sentence

ARG Toolkit/Cryptography/Classical
SHA-1 Hashing

The broken hash that's still perfect for puzzles

ARG Toolkit/Cryptography/Modern/Hashing
SHA-2 Hashing

The hash you actually want, all six flavors in one node

ARG Toolkit/Cryptography/Modern/Hashing
SHA-3 Hashing

The Keccak-era hash, when the puzzle wants the new thing

ARG Toolkit/Cryptography/Modern/Hashing
Simple Substitution Cipher

The all-purpose monoalphabetic swap

ARG Toolkit/Cryptography/Classical
SM3 Hashing

The Chinese national standard hash, for that one puzzle

ARG Toolkit/Cryptography/Modern/Hashing
Spectrogram to Audio

Got a Hidden Audio File in a Picture? This Node Digs It Back Out

ARG Toolkit/Steganography/Analysis
Audio to Spectrogram

Spectrograms in ComfyUI

ARG Toolkit/Steganography/Analysis
OpenSSH Serialized Private Key Loader

The OpenSSH private key loader that refuses to take a file path

ARG Toolkit/Cryptography/Modern/Asymmetric
OpenSSH Serialized Public Key Loader

One pasted .pub line in, one live key object out

ARG Toolkit/Cryptography/Modern/Asymmetric
OpenSSH Public Key Fingerprint

Is this the key the clue pointed at? Fingerprint it in-graph

ARG Toolkit/Cryptography/Modern/Asymmetric
Stegano LSB Decode

Pull the hidden message back out of the pixels

ARG Toolkit/Steganography
Stegano LSB Encode

Hide a message in the pixels of an image

ARG Toolkit/Steganography
String to Base64 Converter

The encoding that makes binary safe to copy-paste

ARG Toolkit/Utilities/Converter
String to Binary Converter

The lowest level you'll ever need to look at

ARG Toolkit/Utilities/Converter
String to Hexadecimal Converter

The format every ARG actually uses

ARG Toolkit/Utilities/Converter
String Append Looper

Repeat a string, with a built-in surprise

ARG Toolkit/Utilities/Padding
Symmetric Encrypt/Decrypt

AES, GCM, and every mode in between

ARG Toolkit/Cryptography/Modern/Cipher
Random Nonce Generator

The pack's supply of actual entropy

ARG Toolkit/Utilities/Random
Three Square Cipher

Delastelle's oddball, three keys and a pair of blanks

ARG Toolkit/Cryptography/Classical
Trifid (Cylinder) Cipher

The three-dimensional Polybius cube, digitized

ARG Toolkit/Cryptography/Classical
Two Square (Double Playfair) Cipher

The Digraph-friendly Double Playfair

ARG Toolkit/Cryptography/Classical
Vic Cipher

The Soviet spy cipher that's hiding a landmine under its default settings

ARG Toolkit/Cryptography/Classical
Vigenere Cipher

The Vigenère cipher node that actually works — and the one everyone reaches for first

ARG Toolkit/Cryptography/Classical
X963KDF Key Derivation

The node that turns a shared secret into an actual encryption key

ARG Toolkit/Cryptography/Modern/Key Derivation
X963KDF Key Verification

The 'is this the right key?' node — constant-time key checking, minus the suspense

ARG Toolkit/Cryptography/Modern/Key Derivation
ECDH Shared Key Exchange

The payoff node for the whole X-series dance

ARG Toolkit/Cryptography/Modern/Asymmetric
SHAKE XOF Hashing

Squeeze the exact bytes you want out of SHAKE

ARG Toolkit/Cryptography/Modern/Hashing
ECDH Private Key Bytes

Useful, but its default settings will crash it

ARG Toolkit/Cryptography/Modern/Asymmetric
ECDH Public Key Bytes

Derive a public key from your ECDH private key — the node that does it cleanly

ARG Toolkit/Cryptography/Modern/Asymmetric
Zigzag (Rail-fence) Cipher

Dumb in the best way, and it actually works

ARG Toolkit/Cryptography/Classical
Readme

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 if absolutely necessary.

Quickstart

  1. Install ComfyUI.
  2. Install ComfyUI-Manager through the official method or manually installing it by cloning the ComfyUI-Manager repository.
  3. Look up this extension in ComfyUI-Manager. This should be available under the name "ComfyUI ARG Toolkit". If you are installing manually, clone this repository under ComfyUI/custom_nodes and install its requirements into the Python environment you use to run ComfyUI.
  4. Restart ComfyUI (and refresh your browser if you use the browser as the client).
  5. Enjoy :)

Features

  • Classic ciphers and cryptography techniques (Caesar, Playfair, Vigénere, Foursquare,...) - currently powered by secretpy.
  • Image steganography and invisible watermarking tools - currently powered by stegano and invisible-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 to add more tests, including workflow tests and examples.

AI Use Disclosure and Disclaimer

Many of the nodes in this project were made with help of generative AI tools like LLM agents (through Cline) and direct questioning and prompting without agentic access manually. This includes unit tests, documentations, and certain nodes and features. I am not inherently against AI use in coding, and every major changes and code pieces in this project all have human reviews on what they are doing. This project is not something that I can do by myself without help, and especially in any reasonable amount of time without AI assistance cutting down the major code works. If you want to take on similar projects by yourself without AI use, feel free to do so.

Other information

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, though the main standout feature (Show Text) is now less useful thanks to newer releases of ComfyUI utilizing Preview as String.
  • ComfyUI-Crystools - System monitor extension for ComfyUI. Useful to check system status when running certain nodes that has the capability to freeze the workflow for long periods of time.
  • ComfyUI_Invisible_Watermark - The main reason I even started this project in the first place, for making an "invisible watermark" node that left such a frankly terrible impression on me that I decided to make my own.
  • ComfyLiterals - Optional custom nodes for use with these nodes to provide or bypass certain limitations of ComfyUI widgets.

License

This project is licensed under the GNU General Public License 3.0 (GPLv3). Additional libraries upstream of this project follow their own open-source licenses. See the LICENSE file for full license details.