-- Simple Question: If I was going to create a login system, I would need to hash the password, but would I need to hash the username aswell?
Yeah but usually you'd want to reference the user in some way on the site, and there would probably be other information associated with the user in the database to identify them anyway, e.g. an emailadding salt and then hashing would make it more secure while its stored in a db cos it harder to identify whos username is whos - it doesnt have to be done, but it can be done and made more secure if you really want it to be.
Yes but again, in most cases usernames would be required to have exact casing when searched for or fetching associated data. If you are going to the details of hashing a username with salt then normally the email would be hashed as well.
