Mooseoft home

Mooseoft Chronicles

Generate password(s)

My friend Jonas and I spent a decent amount of time making Mooseoft’s password generator fast. I’m leaving it out of the new Mooseoft, so naturally I got GPT-6.2 Astra to rebuild it for this essay.

The old Mooseoft Encrypter asked for one password to encrypt a file. If you opened the password generator for help, it gave you ten. You could turn that down to one, of course. We’d even put the S in brackets on the button.

I’m going back through the old menus as I rebuild Mooseoft in Rust. This is the first in a series about the features I’m leaving behind. I’m rather fond of this one.

The old Mooseoft Password generator on a beige CRT, showing ten freshly generated passwords of sixteen characters each.

I’ve given the original screenshot a suitably bulky monitor. You can still see the ‘(s)’ on the Generate button.

Say you’d downloaded Mooseoft from Tucows in 2002 and had a file you wanted to keep to yourself. At the password box you had to think of something. Your email password came to mind pretty quickly, which was a good reason to keep thinking. Having a little tool right there that could pick sixteen letters and digits for you was handy. It worked with the modem unplugged, too.

The box marked Number of passwords makes more sense if you picture the person looking after a school computer room. Thirty pupils are starting on Monday and each needs an account. You could generate thirty passwords in one go, assign one to each username and hand each pupil a slip with their own login. Set the accounts to ask for a new password the first time they signed in, and even the person who cut up the slips wouldn’t know what the pupils chose.

Cambridge did the paper bit on a rather bigger scale. Its computing service registered thousands of users a year. To get new students into their email, the university sent their passwords out on paper through their college offices. In September 2003, postgraduates were due to get the exciting new option of collecting their passwords on the web.

You could edit the alphabet yourself. If you’d ever had to read a password to someone over the phone, you might have taken the capital O and the zero out of it. You could also give each password a number and a date, then click Save list. That left you with a text file full of passwords. I happened to have just the program for encrypting it. You’d need a password.

With Mooseoft I’d have been looking at that text file six months later trying to remember what password number seven was for. These days a browser can suggest a password right in the signup box for a forum. By the time I come back I might have forgotten I even have an account there, but the password manager can still fill it in for me.

As for Mooseoft itself, once you’ve unlocked your vault in the new version, you should be able to drop a hundred files into it without having to dream up a hundred passwords. The app will make its own random keys. I could cross the generator off my list. I did still have the old one handy, though.

How fast can it do a million?

My friend Jonas and I spent a decent amount of time making the Delphi generator fast. Running the old program on my M4 MacBook Air, I can make a million passwords in about seven seconds. Seven seconds sounds pretty good to me. I can spend longer than that thinking of one.

For this essay I asked GPT-6.2 Astra to write a Rust version that would run in the browser as WebAssembly. My contribution to performance this time was telling it to make it fast. On the same MacBook Air, the version it wrote generates a million passwords in around 120 milliseconds. Jonas, I reckon we missed a few optimisations.

Have a go. Set Number of passwords to 1000000 and click Generate passwords. It runs in your browser and puts your time just below the list. If you’ve already made a batch, click Clear list first to make room for the million.

The interactive generator needs JavaScript and WebAssembly.

The source code is on GitHub. If you find another few milliseconds in there, I’d still quite like them.