3 ms·
If your passwords are entered by humans (which is usually what "password" means) then you want to treat it as a real Unicode string so that you can normalize it
by mikeash 11y ago
If your passwords are entered by humans (which is usually what "password" means) then you want to treat it as a real Unicode string so that you can normalize it before you do the dirty work on it. Otherwise you could end up with a situation where, for example, a user's password contains "é" and fails when entered on certain systems because that system composes é differently from the system on which the password was set.