Beezy.MvvmCross.Plugins.SecureStorage.Touch.MvxTouchProtectedData.Protect C# (CSharp) Method

Protect() public method

public Protect ( string key, string value ) : void
key string
value string
return void
        public void Protect(string key, string value)
        {
			Remove (key);

            var code = SecKeyChain.Add(new SecRecord(SecKind.GenericPassword)
            {
                Service = NSBundle.MainBundle.BundleIdentifier,
                Account = key,
				ValueData = NSData.FromString(value, NSStringEncoding.UTF8)
            });
        }
MvxTouchProtectedData