3 ms·
No, you misunderstood. My example was poor, the password in the database is hashed: ... WHERE user.hashed_password = hash(input) OR user.hashed_password =
by tlrobinson 16y ago
No, you misunderstood. My example was poor, the password in the database is hashed:
... WHERE user.hashed_password = hash(input) OR user.hashed_password = input
So the user can provide their password which gets hashed and compared to the stored hash, OR the hash can be given to law enforcement if required and can be used in place of the real password.
This solves the problem of passwords being stored in plaintext (indeed a problem with frequent password reuse) while apparently getting around this silly French law.
Sure if the database is compromised anyone will be able to login to anyone's account, but the database is compromised so who cares?