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;
}