I have sample xamarin forms solution. I wanted username and login functionality. I was doing some research and found nice example.
https://developer.xamarin.com/samples
create a dictionary with all of your user/password pairs in it
Dictionary<string, string> Credentials = new Dictionary<string, string>()
{
{ "user1", "pass" },
{ "user2", "pass" },
{ "user3", "pass" }
};
then when you want to check them
public bool ValidateLogin(string user, string pass)
{
return (Credentials.ContainsKey(user) && Credentials[user] == pass);
}