3 ms·
Just hash raw bytes. Treat it as data and set a maximum byte limit.
by ev1 4y ago
Just hash raw bytes. Treat it as data and set a maximum byte limit.
- Nextgrid 4y agoIndeed, this is the correct solution. Even if you assume that a user has a broken setup that somehow submits weird characters, you're still better off accepting it so that at least they can continue to log in using that weird setup, as opposed to trying to "correct" it and potentially locking the user out.
- Ekaros 4y agoJust be sure there is some mechanism in place to reset the password. As they might then have issue with different platforms. And also ensure if you support multiple platforms there isn't clear operating difference in between.
- rzzzwilson 4y agoWhy a "maximum limit"?