internal bool ShouldEncrypt(string prefix) { prefix = EnsureFormatting(prefix); return(Encrypt.Any(e => { if (e.EndsWith('/')) // partial path { return prefix.StartsWith(e); } else // else is a full path { return prefix == e; } })); }