THE MISSING SALT — MOOSEoft ENCRYPTER PASSWORD CHALLENGE Format guide, version 1 — 24 November 2026 START WITH THE PASCAL original-guide.pas is an unmodified copy of the surviving guidesrc/Unit1.pas. Read TForm1.Encrypt and TForm1.Decrypt. This is actual historical guide source, not newly written pseudocode. It references Delphi/VCL forms and DCPcrypt units that are not included here; the single .pas file is not a standalone buildable project. The guide hardcodes SHA-1 and Blowfish, which are precisely the settings used for these challenges. This document fills in the library behaviour behind Init(..., nil), Reset, EncryptCBC and DecryptCBC. Those details were checked against the crypto routines in Mooseoft Encrypter 2003 Professional 5.0. mes_tool.py is an optional modern reference implementation for running experiments without Delphi or Windows. The Pascal remains the historical source of the example. WHAT YOU ARE TRYING TO RECOVER There are three independent passwords, of exactly 6, 8 and 16 characters. Every character was sampled uniformly and independently using an operating- system-backed cryptographic random generator, from these 62 ASCII characters: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 Passwords are case-sensitive. No requirement forces all three character classes to occur. No dictionary words, fixed prefixes or hidden mask rules were used. Hardware/volume binding is OFF for all three files. Each encrypted payload is an ordinary, uncompressed ZIP archive containing exactly three UTF-8 .txt files. Filenames, ZIP metadata and text are all inside the encrypted payload. The ZIP is a convenient way to group the prizes; it is not a claim about a native multi-file Mooseoft archive format. The files were newly generated for this challenge using the recovered format. They are not old user files. Their passwords and raw SHA-1 digests are NOT published. manifest.json lists lengths, search spaces, sizes and SHA-256 checksums of the downloadable .mes files. Those checksums are for checking downloads, not password-cracking targets. Search spaces: 6: 62^6 = 56,800,235,584 (~35.73 bits) 8: 62^8 = 218,340,105,584,896 (~47.63 bits) 16: 62^16 = 47,672,401,706,823,533,450,263,330,816 (~95.27 bits) For a constant rate R of complete candidate checks/second, exhaustive search takes N/R seconds, and the expected number of checks for a uniformly located answer in an enumeration without repeats is (N+1)/2. Use a measured rate for THIS complete verifier, including key setup. No GPU speed or solve time is assumed. The sixteen-character file illustrates the size of the search space; it is not presented as a practical brute-force target. ON-DISK LAYOUT (ZERO-BASED BYTE OFFSETS) Offset Size Contents 0x0000 32 bytes Encrypted padded password digest / password verifier 0x0020 L-32 bytes Encrypted ZIP payload, where L is the total file size There is no magic signature, version field, salt field, algorithm identifier, stored IV, length prefix, filename field or plaintext SHA-1 digest in this outer wrapper. The chosen algorithms are supplied out of band by this guide. This specification is for the SHA-1/Blowfish path used here, not every setting or other feature of the historical application. A valid file can be as short as 32 bytes (empty plaintext). All challenge files are longer. The file length is always plaintext length + 32; the last block is not padded to a multiple of eight bytes. EXTRACT THE VERIFIER AND ENCRYPTED CONTENT On a Unix-like shell, with the challenge kit as your working directory: dd if=six-characters.mes of=header.bin bs=1 count=32 dd if=six-characters.mes of=payload.enc bs=1 skip=32 od -An -tx1 -v header.bin The first command extracts the encrypted 32-byte verifier, NOT a raw SHA-1 hash. The second extracts the encrypted ZIP bytes. To do the same with the optional reference tool: python3 mes_tool.py inspect six-characters.mes python3 mes_tool.py extract six-characters.mes extracted-six The extract command creates a new directory containing header.bin, header.hex (64 hexadecimal characters plus a newline), and payload.enc. It refuses to reuse an existing output directory. PASSWORD BYTES AND KEY DERIVATION The old code uses Delphi AnsiString bytes. The challenge alphabet is ASCII, so there is no Windows code-page ambiguity. Do not encode as UTF-16, include a string terminator or a newline, trim spaces, or change letter case. Let P be the candidate password bytes. Concatenation is written ||. D = SHA1(P) # 20 raw digest bytes, NOT 40 ASCII hex digits K = D || FF FF FF FF FF FF FF FF FF FF FF FF K is exactly 32 bytes. The guide first fills the entire HashDigest buffer with 0xFF, then SHA-1 overwrites its first 20 bytes. The twelve trailing FF bytes are fixed padding of the key buffer. They are not hashed and are not a salt. There are no password-stretching iterations in this derivation. BLOWFISH SETUP AND DEFAULT IV Expand the entire 32-byte K using standard Blowfish key setup. The requested key length is 256 bits; do not use only the 20-byte SHA-1 digest, a hex string, or a 448-bit key. Blowfish works on 8-byte blocks, with standard big-endian word interpretation. A standard Blowfish ECB primitive accepts the byte strings used in the formulas below without manually reversing their bytes. Let E_K(B) mean encryption of one eight-byte block B under that expanded key. Let D_K(B) mean block decryption. For the nil IV argument in this legacy path: IV = E_K(FF FF FF FF FF FF FF FF) It is not an all-zero IV or an all-FF IV. It is the ENCRYPTION of eight FF bytes. The IV depends on the password-derived key and is not stored in the file. It is deterministic, not fresh random data. CBC AND THE SHORT FINAL BLOCK For each separate encryption operation, start with chain = IV. For every complete eight-byte plaintext block B: C = E_K(B XOR chain) emit C chain = C If 1..7 bytes remain, call the remaining byte string T and its length r: emit T XOR first_r_bytes(E_K(chain)) There is no PKCS#7 padding and no ciphertext stealing. The short final piece is XORed with a truncated encrypted chaining block, preserving the length. To decrypt full blocks: B = D_K(C) XOR chain emit B chain = C Decrypt a short final tail using the same XOR rule as encryption. This last step uses E_K, even during decryption. If the payload is shorter than eight bytes, its initial chain is still IV. The original 8192-byte file I/O buffer is a multiple of eight. CBC chaining continues across those reads; do not reset the cipher at each 8192-byte boundary. Only the final file read may need the short-block rule. HEADER AND PAYLOAD ARE SEPARATE CBC OPERATIONS Using the setup above: H = CBC_ENCRYPT(K, IV, K) # encrypt the 32-byte padded digest itself C = CBC_ENCRYPT(K, IV, payload) # RESET to IV before the first payload byte file = H || C The K in the third argument of the first line is the plaintext buffer. This is exactly why the misleadingly still-named HashDigest variable does not contain a plaintext hash when BlockWrite writes it. Do not continue the header's CBC chain into the payload. The Encrypt.Reset call in the Pascal is important. Standard CBC plus the documented tail rule must be invoked separately for those two parts. TEST ONE CANDIDATE WITHOUT DECRYPTING THE PAYLOAD 1. Compute D = SHA1(candidate bytes). 2. Set K = D || twelve FF bytes. 3. Expand the Blowfish key K. 4. Compute IV = E_K(eight FF bytes). 5. CBC-encrypt the 32-byte K using that IV. 6. Compare all 32 resulting bytes with the stored header H. A match identifies a candidate that the old app would accept. Recover the payload with CBC decryption starting from IV again; save it as a .zip file. Open the ZIP and check its CRCs and three text entries as a final confirmation. This format has no modern authentication tag. A matching password header alone does not detect damage elsewhere in the payload. An optimized implementation may first compute C1 = E_K(first_8_bytes(K) XOR IV) and reject a candidate if C1 differs from header[0:8]. Compute/compare the remaining blocks for any survivors. A first-block match is only a filter; confirm all 32 bytes and the recovered ZIP before reporting a solution. HASHCAT AND GPU IMPLEMENTATIONS Hashcat mode 100 is raw SHA-1. It does not accept the encrypted header as a SHA-1 target. Other modes containing the words SHA-1 and Blowfish use their own formats and are not automatically compatible either. No dedicated Mooseoft mode appears in the official v8.0.0 example-hash list checked while preparing this challenge. This kit does not include a custom Hashcat module or GPU kernel. Implementing the documented candidate test is part of the authentic-format challenge. mes_tool.py is a CPU reference, not GPU software. Official references: https://github.com/hashcat/hashcat/blob/v8.0.0/docs/hashcat-example-hashes.md https://hashcat.net/wiki/doku.php?id=mask_attack For a custom Hashcat implementation, the alphabet is -1 '?l?u?d'. Exact-length masks are '?1?1?1?1?1?1', '?1?1?1?1?1?1?1?1', and sixteen copies of '?1'. Quote question marks in shells. These masks define the candidate space; they do not supply the missing format-specific verification kernel. If using an LLM to help port the Pascal, provide original-guide.pas, this document, and test-vector.json together. Ask it to implement the exact byte operations and first reproduce the public vector. In particular, check the FF key padding, full key expansion, derived IV, CBC reset and tail rule. Do not let it substitute a raw SHA-1 mode or silently introduce modern padding. Benchmark complete candidate checks, including SHA-1 and Blowfish key setup, and describe whether the first-block filter is used. The old app's key setup has real cost even though it is not a configurable password KDF. A raw SHA-1 benchmark does not measure attacks against these .mes files. PUBLIC KNOWN-ANSWER VECTOR (NOT ONE OF THE CHALLENGES) Password ASCII: Moose42 Password hex: 4d6f6f73653432 Plaintext: Test moose. followed by LF Plaintext hex: 54657374206d6f6f73652e0a SHA-1 hex: d73e14271deead70050ca08980fba61c4027b0b8 Key hex: d73e14271deead70050ca08980fba61c4027b0b8ffffffffffffffffffffffff IV hex: 48be1f9762739956 Header hex: 0cc37afee1c519caf2b314dfda82c40bf168fc04b100ebfe6781d1c146d5bec7 Payload hex: 9e6a921329ad9c214313893b The complete file is the 32-byte header concatenated with the 12-byte encrypted payload (44 bytes). The payload exercises one full block and a four-byte tail. The same values are in test-vector.json for machine parsing. This public password and plaintext may be used freely for testing; they reveal no answer to the three challenges. OPTIONAL PYTHON UTILITY Use Python 3.9+ and a virtual environment. In the extracted challenge kit: python3 -m venv .venv . .venv/bin/activate python3 -m pip install -r requirements.txt python3 mes_tool.py selftest On Windows, activate with .venv\Scripts\Activate.ps1 in PowerShell instead. The pinned dependency is PyCryptodome; its Blowfish primitive is used in ECB mode internally so the legacy wrapper and partial-block rules stay explicit. After recovering a password, run either command and enter it at the prompt: python3 mes_tool.py verify six-characters.mes python3 mes_tool.py decrypt six-characters.mes recovered-six.zip The program refuses to overwrite existing output files. Open recovered-six.zip with your usual archive tool. It does not automatically extract archive paths. For a small candidate list (ASCII lines, without extra whitespace): python3 mes_tool.py scan six-characters.mes < candidates.txt This is for correctness checks, not an efficient full search. A match is printed to stdout and gives exit status 0; no match gives exit status 1. You can reproduce the known vector or make your own legacy test file: python3 mes_tool.py encrypt your-input-file your-test.mes Enter the chosen password at the prompt. The function encrypt(data, password) in mes_tool.py is the same format implementation used to create these three challenges. This utility reproduces an old format for study, not a modern encryption design. HOW THESE ARTIFACTS WERE CHECKED All three generated .mes files matched byte for byte when their plaintext and password were passed through the original 5.0 encryption routines in an x86 emulator. The original decryption routines recovered the exact ZIPs and rejected wrong passwords. GUI, allocation and file I/O were stubbed; the hashing, key setup and cipher routines ran as original executable instructions. An independent Blowfish implementation also produced the same bytes. The public vector was checked against the original routines. Extra tests covered plaintext lengths 0, 1, 7, 8, 9, 15, 16, 31, 32, 8191, 8192 and 8193, including the old file I/O boundary. All nine ZIP entries passed CRC checks. Original executable SHA-256, for identifying the examined build: c6c0751e4029b24f5a958fe5c863f88705010e156429af05ead2407ece484f1e The executable is not required or included in this kit. The checked-in original-guide.pas is supplied unchanged, including its original spelling. If you solve a file, record which file, your hardware, tool/version, complete checks per second, attack method and elapsed time. If you find a shortcut, explain it. The moose is interested in the method as well as the prize.