I want to do an app that can register users and have a log in type of thing, how can I do it so it only can Log In when the username and password are correct?
See
This only handles registration of a new user, does not show how to login after registering or test password (which is stored in plain text)
Here is an example using google sheets to store login data
(this also does not encode/encrypt the password, but can easily be done)
If you want to login using Firebase Authentication, then perhaps see here:
and here
https://community.appinventor.mit.edu/t/faq-section-firebase/1702/2
I think this is the easiest and fastest way. He can add hashing to that and the method will be safer.
@GT-Game_and_Tech @shyychip
never store a password in plain text in any database... always store its hash value and if you want to compare the entered password with the stored password just compare the hash values...
There is a fundamental difference between Hashing and Encryption algorithms, see this stackoverflow answer: Hashing is one way. You can not get your data/string from a hash code. Encryption is 2 way - you can decrypt again the encrypted string if you have the key with you.
to create a password hash, see my Tools Extension
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
I generally qualify things with:
a simple solution
He is concerned about security