Nothing prevents it. That’s why you shouldn’t do that.
Passwords should instead be transmitted over a secured channel (such as TLS) to prevent MitM, and then compared to a stored hash using a secure password-hashing algorithm.
TLS involves per-session keys and a stream cypher, so simply repeating the same encrypted bytes doesn’t work.
Latest Answers