Mooseoft Chronicles
The Missing Salt in Mooseoft
The name was missing an S. The password hashing was missing something rather more important.
In the previous essay, I explained why Mooseoft was missing an S. My friend Peter suggested removing it, and I agreed.
The missing salt is harder to blame on Peter.
I’ve been digging through the old Mooseoft Encrypter again. The full application source is gone, but a surviving Delphi guide and the 2003 executable are enough to reconstruct how it handled passwords. There is something wonderfully uncomfortable about reverse engineering your own teenage decisions. The suspect looks familiar. He also appears to have administrator privileges.
What the old code did
For the SHA-1 path, the app took the password bytes and hashed them once. No random salt. No deliberate password-stretching loop. That result became the basis of the encryption key. Here is that part of the surviving Delphi guide, exactly as written:
FillChar(HashDigest,Sizeof(HashDigest),$FF);
Hash := TDCP_SHA1.Create(Self);
Hash.Init;
Hash.UpdateStr(Password);
Hash.Final(HashDigest);
Hash.Free;
Seven lines. The salt did not get lost in a complicated abstraction.
I also found the option that tried to bind files to a drive by appending its volume serial number to the password. We’ll get to that little woodland creature shortly.
What was available in 2000
First, I owe the year 2000 a fair hearing.
SHA-1 was an established cryptographic building block. Using it inside a suitable password derivation scheme was reasonable at the time. In September 2000, PKCS #5 v2.0 described PBKDF2, including salt, an iteration count, and HMAC-SHA-1. The point of those iterations was already to make guessing expensive. bcrypt had been presented in 1999, with an adjustable cost intended to keep up with faster hardware.
But publication and everyday library support were different things. A technique appearing in a paper or specification didn’t automatically make it a ready-to-use component for a Windows application written in Delphi. The DCPcrypt v2 documentation, carrying a 1999–2002 copyright, illustrates the gap: its passphrase examples initialise a cipher from a SHA-1 hash, without salt or password stretching in that path.
That is the Delphi/Pascal context behind Mooseoft. bcrypt and PBKDF2 existed, but neither was part of the ready-made password-to-key path our code used. The available components made hashing a string straightforward. Building a complete password-protection scheme still required knowing what else to add. The RFC had arrived; it had not installed itself in my component palette.
So I don’t get to say, “Nobody knew any better.” People knew. The tools and examples in front of a teenage Delphi developer didn’t necessarily make those better choices obvious. The missing salt was still my mistake.
Adding salt would have fixed one mistake. A single salted SHA-1 calculation would still have been too fast for a good password scheme. SHA-1 was designed to hash efficiently; password protection needs to make repeated guesses costly. That distinction existed before GPUs became such enthusiastic guessing machines. OWASP’s password guidance explains why speed is the problem here.
What the missing salt cost us
A salt is a random value used alongside the password. Give each encrypted file a fresh salt and the same password can produce different keys. The salt can live in the file. It doesn’t need a secret drawer or its own password.
That stops an attacker from preparing one universal table of results or reusing the same derivation work across every file with the same password. It doesn’t make a weak password strong, and it doesn’t stop someone guessing against one particular file. Salt gives each target its own homework. It doesn’t make the homework impossible.
Our unsalted path gave the same password the same derived key and the same password-checking header. The twelve fixed FF bytes used to fill the key buffer did not help. A constant wearing a hexadecimal hat is still a constant.
The volume serial number detour
With the drive-binding option enabled, Mooseoft appended the selected drive’s volume serial number, written as hexadecimal text, before hashing. Windows supplies that value through GetVolumeInformationA. It is an identifier assigned when the volume is formatted, as Microsoft’s documentation explains. It isn’t the manufacturer’s physical drive serial number, and it isn’t a secret.
This could change the derived key between volumes, but it reused the same extra value for files bound to a given volume. It was no substitute for a fresh random salt per file. It also made recovering the file depend on knowing another piece of information that a reformat could change.
I had promoted filesystem metadata to head of security. It had not applied for the position.
What the hell was I thinking?

Star Trek: The Next Generation, via Tenor.
The hash inside the file
There is one detail that matters for the challenge below: the app didn’t simply write the SHA-1 hash into the file. It encrypted the padded hash with the derived key and stored that result as a password verifier. These lines from the same guide show the handoff:
Encrypt.EncryptCBC(HashDigest,HashDigest,Sizeof(HashDigest));
Encrypt.Reset;
BlockWrite(Dest,HashDigest,Sizeof(HashDigest));
HashDigest still had “hash” in its name, but by the time it reached BlockWrite, its contents were encrypted. To check a guess, the app repeated the calculation and compared the result. Past me left quite a good opportunity for future me to misread his own code.
That gives an attacker an offline yes-or-no test. There is no server to enforce five attempts, send a warning email, or ask which squares contain a traffic light. But each guess involves more than a bare SHA-1 calculation, so a raw SHA-1 GPU benchmark would exaggerate the speed of attacking these files. The guide below spells out the actual work.
Let the app handle the keys
For the new Mooseoft, the plan is to stop asking you to invent a secret for every file. The app will generate random file and vault keys and manage them behind the scenes. You shouldn’t need to see, remember, type or send those keys yourself.
Humans have many talents. Producing unpredictable strings on demand is usually somewhere below remembering where we put the USB cable. I’d like the app to take that job off your hands.
For sharing, the direction is to give access to a verified recipient through their public identity. The apps handle the secret keys. There should be no follow-up message saying, “The password is Moose2003, with an exclamation mark because this is confidential.”
There is still a separate question: how do you unlock access to your own keys? For the first vault version, the plan is an unlocking password. You use it to open the vault; the app takes care of the random keys underneath. That removes the need to invent and exchange passwords for individual files while keeping a deliberate unlocking step for your local data.
Where unlocking uses a password, I’m leaning toward Argon2id to derive a key that protects the stored vault key. The vault key itself stays randomly generated. Argon2id deliberately uses memory as well as computation, with settings that let us make repeated guesses expensive. GPUs can still attack it; each attempt has more work to do. RFC 9106 describes the design and how to choose its parameters.
Each password-based unlocking record would get a fresh random salt, stored with its versioned derivation settings. Memory and time settings need measuring on the machines Mooseoft will support. I’m not going to choose a number because it looks reassuring in a screenshot.
Argon2id belongs at that password boundary. We don’t need to turn an already random file key into a pretend password and put it through the same process. It also can’t rescue an easily guessed unlocking password by manufacturing randomness that wasn’t there.
Recovery needs its own design too. We’re exploring a generated recovery phrase for the local identity, kept safely offline. Recovering that identity won’t automatically recover every independently protected vault; each vault needs an explicit recovery route. And recovering keys won’t bring back a deleted file. Even a very confident moose needs backups.
Those are plans for the rebuild, not features I’m claiming to have shipped. The teenage version of me could put a button on a form quite quickly. This version is trying to earn the button.
Three passwords and a challenge
Now you can have a go at the old approach.
I’ve made three new files using the recovered SHA-1 and Blowfish path, with drive binding switched off. Each contains a ZIP archive holding three small text files of questionable literary value. ZIP is just how I grouped the prizes; the outer .mes file uses the original single-stream format.
The passwords were generated independently, choosing every character uniformly from a–z, A–Z, and 0–9. No dictionary words, mandatory digit positions, or other clues. These are the possible search spaces:
- Six characters: 56,800,235,584 possibilities, about 35.7 bits.
- Eight characters: 218,340,105,584,896 possibilities, about 47.6 bits.
- Sixteen characters: about 4.77 × 10²⁸ possibilities, about 95.3 bits. Please don’t put the kettle on and promise to be back when it finishes.
Those figures describe uniformly random passwords. A human sentence or familiar word of the same length doesn’t automatically get the same strength. The sixteen-character file is here to show how much the size of the search space matters, even with an old derivation method. It isn’t a promise that all three are practical brute-force targets.
That enormous number only describes the password search space. Someone may spot a weakness in the old format or implementation that makes recovering the contents much easier, perhaps without ever finding the password. That would absolutely count as a solution, provided you can show how it works. Sixteen random characters do not issue the rest of my teenage code a certificate of good behaviour.
Download the complete challenge kit. Start with the original Delphi guide source: the actual Encrypt and Decrypt procedures, complete with the reassuring message “Decryption sucessfully done!” I have resisted the urge to fix the spelling. That would be tampering with the archaeological record.
The kit also includes all three .mes files, a byte-by-byte format guide, checksums, a public test vector, and an optional Python reference checker. The guide documents the library behaviour hidden behind those Delphi calls, including key setup and the last partial block. Hand the Pascal, guide, and test vector to your LLM of choice. Ask it to reproduce the expected bytes before it starts predicting victory.
For the GPU and Hashcat crowd: this is the authentic format, so there are no raw SHA-1 hashes supplied as a shortcut. Hashcat’s standard SHA-1 mode does not test this encrypted verifier. You’ll need a custom mode or another implementation of the documented check; the included Python tool is a CPU reference. The format guide covers extraction, the exact candidate test, and how to check a recovered password.
Share your findings
Post your findings in the r/ReverseEngineering discussion. Share your benchmarks, write-ups, and any weaknesses you find in the old format. Questions and partial results are welcome too.
If you take it on, record your hardware, implementation, complete password checks per second, and which file you recovered. The interesting result is the measured cost of this format, not how fast a GPU can do the first step in isolation.
Please mark recovered passwords and file contents as spoilers so others can have a go at the challenge themselves.
Missing an S since 2000. Remembering the salt this time.