3 ms·
Just take a random string, encrypt it with the password and save both plaintext and encrypted version in localStorage, stuff a username in one or another if nee
by huhtenberg 7y ago
Just take a random string, encrypt it with the password and save both plaintext and encrypted version in localStorage, stuff a username in one or another if needed. This will allow you to check if the username/password combo is valid.