./build/csha from a build tree or csha after installation. Start withcsha -M MODE [IMAGE_AND_MAP_OPTIONS]
csha blob-streams COMMAND [STREAM_OPTIONS]
csha docker-image COMMAND [DOCKER_OPTIONS]-M, -p, and -o-M. The table describes the current| Mode | Alias | Input and behavior | Output / recovery |
|---|---|---|---|
f | full | Ordinary path encodes -P using -p; with two --key-image values, encodes -s or -f instead | Environment PNG / fd |
fd | full-decode | Read an environment map with matching credentials | Plaintext display; image-pair path supports exact file output with -o |
fz | full-zip | Read -z archive into environment map(s) | Master map and, for larger inputs, companion chunks / fdz |
fdz | full-decode-zip | Read a single map, master map with companion chunks, or legacy mosaic | Archive at -Z |
ens | encode-no-seed | Encrypt -P with -p | AES PNG / di or pd |
ews | encode-with-seed | Encrypt -P; optionally render the separate -S seed | Writes encoded.png plus the optional map |
es | encode-string | Encrypt text from -s | AES PNG / di or ds |
ef | encode-file | Read binary bytes from -f and encrypt | AES PNG / API for exact file output; di displays text |
ez | encode-zip | Read and Base64-wrap an archive from -z | AES PNG / dz |
ds | decode-string | Decode an AES image | Labeled plaintext on stdout |
di | decode-image | Decode an AES image | Labeled plaintext on stdout |
dm | decode-map | Read visible seed metadata | Seed, version, and spawn details |
dz | decode-zip | Decode a ZIP AES image | Restored archive at required -Z path |
mfs | map-from-string | Render numeric seed supplied by -S | Seed map PNG |
mfi | map-from-image | Read a seed from image metadata, or hash the image with -g | Printed seed; -G also writes its map |
mfz | map-from-zip | Encrypt an archive, then derive a seed from that image | Printed seed; does not preserve the archive in a generated seed map |
mts | map-to-string | Read seed metadata | First seed and hex representation |
mti | map-to-image | Read and save a map image | PNG copy, not decryption |
mtz | map-to-zip | Export seed metadata via system zip | Metadata archive; legacy path |
pe | pure-encode | Encrypt plaintext from -P using -p | AES PNG / pd |
pd | pure-decode | Decode an AES image | Labeled plaintext on stdout |
-M: the default and unknown-mode fallback are f. -e and-d add validation checks but do not change -M. See| Option | Meaning |
|---|---|
-h, --help | Show usage |
-v, --version | Show the executable version |
-M, --mode MODE | Select an image/map mode |
-s, --string TEXT | Input text for es or image-pair f |
-f, --file PATH | File input for ef or image-pair f |
-z, --zip PATH | Archive input |
-i, --image PATH | Input image, mutually exclusive with data URL input |
-o, --output PATH | Generated image; decoded file output in image-pair fd |
-Z, --zip-output PATH | Restored or exported ZIP path |
-p, --public-key VALUE | Symmetric encryption-key input despite the historical name |
-P, --password VALUE | Plaintext or environment password, depending on mode |
-A, --aes-mode MODE | GCM (default), CBC, or CTR |
-k, --key-derive MODE | PBKDF2 (default), DIRECT, or FIXED |
-S, --seed VALUE | Numeric Minecraft seed |
-m, --mc-version VALUE | Project's Minecraft version selector; default 18 |
-a, --salt VALUE | Image-to-seed salt; not the AES derivation salt |
-g, --gen-seed | Hash input image to derive a seed |
-G, --gen-map | Generate a map from the derived seed in mfi / mfz |
--image-data-url VALUE | Literal PNG data URL or @file |
--data-url-output PATH | Save a complete PNG data URL alongside supported image output |
--cipher NAME | Choose AES or one of ten additional authenticated ciphers |
--list-ciphers | List supported cipher names |
--key-image PATH | Repeat twice to encode an image-password map; once to decode |
FIXED derivation uses a built-in constant key.es, ez, and pe default toencoded.png; ef defaults to encoded_file.png; ordinary f defaults tooutput.png; mfs defaults to map.png; image-pair f defaults topair-map.png. Ordinary image outputs may overwrite existing files.di, ds, and pd print diagnostics plus a labeled plaintext value. Redirectingez / dz forfd -o for its files, or the C++ API.--cipher NAME to select one of ten non-AES authenticated algorithms;--list-ciphers lists them. See encryption algorithms../build/csha -M es -s "Hello World" -p example-key -o encoded.png
./build/csha -M di -i encoded.png -p example-key
./build/csha -M ef -f input.txt -p example-key -o file.png
./build/csha -M di -i file.png -p example-keyef, the decode command above demonstrates readable text only. For an./build/csha -M ez -z archive.zip -p example-key -o archive.png
./build/csha -M dz -i archive.png -p example-key -Z restored.zip./build/csha -M mfs -S 12345678 -m 18 -o map.png
./build/csha -M dm -i map.png./build/csha -M mfi -i input.png -g -G -o derived-map.png
./build/csha -M mfz -z archive.zip -p example-key -g -G -o zip-seed-map.png-S is needed for these derived seeds. A seed map retains the derived seed,./build/csha -M f -P demo-message -p demo-key -o environment.png
./build/csha -M fd -i environment.png -P demo-message -p demo-keyf currently encodes the -P value itself. It does-s or -f as an independent payload. Use image-pair mode below forgenerate_env_map(data, password, key) API../build/csha -M fz -z archive.zip -P map-password -p example-key -o archive-map.png
./build/csha -M fdz -i archive-map.png -P map-password -p example-key -Z restored.zip
cmp archive.zip restored.ziparchive-map.png together with archive-map.chunks/chunk_0.png, chunk_1.png, … files. fdz finds the./build/csha -M es -s "Hello" -p example-key -o encoded.png --data-url-output encoded.url
./build/csha -M di --image-data-url @encoded.url -p example-key--image-data-url also accepts a literal data:image/png;base64,... value.@file for large images to avoid shell argument-size limits. Data URLs are./build/csha -M f -s "secret data" --key-image first.png --key-image second.png -o pair-map.png
./build/csha -M fd -i pair-map.png --key-image first.png
./build/csha -M fd -i pair-map.png --key-image second.png-f input.bin when encoding a file and -o restored.bin when decoding.--cipher NAME selects an-p, -A, and -k./build/csha -M f -s "secret data" --key-image first.png --key-image second.png -o pair-map.png --data-url-output pair-map.url
./build/csha -M fd --image-data-url @pair-map.url --key-image second.pngcsha blob-streams --help provides live encryption/decryption, device identities,csha docker-image has keygen, pack, inspect, restore, load, and run