Quote:
there might be thousands having same username and password
First thing is that it is a very bad idea to identify user with non unique username.
Quote:
how come hashing technique will provide each of the thousand employees with his specific data
It don't.
The job of a
UserId
is to uniquely identify a user. and this is the
UserId
that will give specific data.
The job of a
PassWord
is to confirm that user on keyboard is the one he pretend by using this
UserId
.
Hashing is a technique to avoid storing PassWords as plain text in database.
[Update]
Quote:
there might be thousands having same username
Just curious, how will you handle their Emails ?
1 Email address for a thousand users ?
Or a different Email for each user ? and in this case, how do you know which Email for which user with identical name ?