예제 #1
0
 public bool Login()
 {
     using (var store = new DataStoreContext())
     {
         var hash   = store.LoginDetails.First().Password;
         var actual = new TwoWayEncryption().Decrypt(hash);
         return Password == actual;
     }
 }
예제 #2
0
        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();
        }