public bool Login() { using (var store = new DataStoreContext()) { var hash = store.LoginDetails.First().Password; var actual = new TwoWayEncryption().Decrypt(hash); return Password == actual; } }
public void Save() { var encryptedPin = new TwoWayEncryption().Encrypt(Pin); using (var store = new DataStoreContext()) { var details = store.LoginDetails.First(); details.Pin = encryptedPin; store.SubmitChanges(); } Navigator.GoBack(); }