Check if entry is password protected #165

Closed
opened 2026-01-29 22:07:42 +00:00 by claunia · 1 comment
Owner

Originally created by @et721 on GitHub (Apr 12, 2017).

Hi,

I was wondering how I could check if a rar entry is password protected, thanks!

Originally created by @et721 on GitHub (Apr 12, 2017). Hi, I was wondering how I could check if a rar entry is password protected, thanks!
Author
Owner

@njlr commented on GitHub (Aug 31, 2023):

#r "nuget: SharpCompress, 0.32.2"

open SharpCompress.Archives

let archive = ArchiveFactory.Open("secret.zip")

for e in archive.Entries do
  printfn $"IsEncrypted %b{e.IsEncrypted}"

@njlr commented on GitHub (Aug 31, 2023): ```fsharp #r "nuget: SharpCompress, 0.32.2" open SharpCompress.Archives let archive = ArchiveFactory.Open("secret.zip") for e in archive.Entries do printfn $"IsEncrypted %b{e.IsEncrypted}" ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#165