Remix.run Logo
▲ wzyboy a day ago

I've used this kind of password generation in the past: nothing is stored, the tool just computes the password of a website by hash(master_key, website_domain).

This works, until a website (or a corporate IT admin) requires to change your password.

▲zahlman 21 hours ago | parent | next [-]

There are dozens of us!

> This works, until a website (or a corporate IT admin) requires to change your password.

I save a list of "domains", and don't require them to be actually valid domain names or to correspond to the service. So I can just put a number on the value in the file, and the hash function computes something completely different. Of course, that does leak the information about what websites I have accounts on, but that sort of thing is probably easily guessed anyway.

▲teiferer 14 hours ago | parent [-]

And how is storing that list (together with the algorithm deriving the passwords from it) different from just storing randomly generated passwords?

▲zahlman 8 hours ago | parent [-]

Because the list doesn't contain secret information, even in encrypted form. The algorithm requires input that's only available from my own head. (To be clear, my threat model here doesn't include RATs, or specific malware that could read the process memory of my program and know how to interpret it, because I figure either of those would be game over regardless.)

If I were to generate random data and encrypt it, and I lost that data somehow, I would have to worry about whether I implemented the encryption properly. But I can't really mess up the implementation of "hash an arbitrary amount of data with a standard algorithm". Even if it were a bad hash, the attacker would be missing information on both the input and output side.

▲hamburglar 16 hours ago | parent | prev [-]

Yes and no. The metadata that is hashed per site includes an arbitrary serial number. SerialNumber++ rotates your password. It’s even reversible!