I thought about hashing or even encrypting the login credentials client side before sending them to the server. But I wondered whether it's secure to store this data in the database, because I don't know whether it's mathematically possible that a different username resulted in the same hash as another one.
Is it possible? If so, how could I store the username in a non-human-readable way without risking duplicate "cyphers" for different usernames?