public int GetInt(ISFSObject data, string key) { if (receiveEncrypted) { return(provider.DecryptInt(data.GetByteArray(key))); } else { return(data.GetInt(key)); } }