Fix 7z encryption detection for streamless files

This commit is contained in:
Adam Hathcock
2026-10-12 15:29:40 +01:00
parent e4193af83b
commit 7d7983e0f4
4 changed files with 88 additions and 4 deletions

View File

@@ -831,3 +831,7 @@ using (var reader = ReaderFactory.OpenReader(stream))
- [USAGE.md](USAGE.md) - Complete code examples
- [FORMATS.md](FORMATS.md) - Supported formats
- [PERFORMANCE.md](PERFORMANCE.md) - API selection guide
## 7z Encryption Detection
For 7z archives, `IsEncrypted` is true when any entry has an AES-encrypted data stream.
Streamless empty files and directories are not encrypted. Archives without files return false.