public bool GetBool(ISFSObject data, string key) { if (receiveEncrypted) { return(provider.DecryptBool(data.GetByteArray(key))); } else { return(data.GetBool(key)); } }