Extensions/Hash Phrase
ComfyUI Extension

Hash Phrase

Generate deterministic, human-readable phrases from text in ComfyUI.

By TensorClay·Created 7 days ago·Updated 7 days ago· 0
TensorClay/ComfyUI-HashPhrase
Nodes
On cloudLocal install
Stars0
Updated7 days ago
Readme

ComfyUI Hash Phrase

Hash Phrase is a small ComfyUI custom node that converts any string into a deterministic English phrase.

Installation

ComfyUI Registry / Manager

Open ComfyUI’s extension manager, search for Hash Phrase, install it, and restart ComfyUI.

Git

cd /path/to/ComfyUI/custom_nodes
git clone https://github.com/TensorClay/ComfyUI-HashPhrase.git

Restart ComfyUI after cloning.

Restart ComfyUI, then find Hash Phrase under utils/text. Hash Phrase requires ComfyUI 0.28.0 or newer.

Usage

The node accepts text, word_count, and separator, and returns one STRING, phrase. word_count defaults to 2 and is clamped to 1–16. Its number widget provides increment/decrement controls. separator defaults to a space and is limited to 32 characters; both settings can be connected from other nodes.

Identical inputs and settings produce identical phrases; words do not repeat within a phrase. Empty and Unicode strings are supported, and the result does not depend on ComfyUI's workflow seed.

The mapping uses SHA-256 with the versioned domain ComfyUI-HashPhrase-v1\0, followed by selection without replacement from the EFF long Diceware English wordlist. Its exact dependency is pinned so existing results remain reproducible.

This creates friendly identifiers, not collision-resistant cryptographic hashes or secrets.

Development

Run the tests with:

python -m unittest discover -s tests -v