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

Unprotect() public method

public Unprotect ( string key ) : string
key string
return string
        public string Unprotect(string key)
        {
            var existingRecord = new SecRecord(SecKind.GenericPassword)
            {
                Account = key,
                Service = NSBundle.MainBundle.BundleIdentifier
            };

            // Locate the entry in the keychain, using the label, service and account information.
            // The result code will tell us the outcome of the operation.
            SecStatusCode resultCode;

			string str = null;
			NSData find = SecKeyChain.QueryAsData( existingRecord );
			if( find != null )
			{
				str = find.ToString();

			}
			return str;

        }
MvxTouchProtectedData