This works, until a website (or a corporate IT admin) requires to change your password.
> 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.
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.