Check if a rar archive is encrypted #258

Open
opened 2026-01-29 22:09:09 +00:00 by claunia · 3 comments
Owner

Originally created by @Ethenski on GitHub (Nov 6, 2017).

Hi, I needed to know how to check if a rar archive is password protected or not, without actually extracting anything first.

Originally created by @Ethenski on GitHub (Nov 6, 2017). Hi, I needed to know how to check if a rar archive is password protected or not, without actually extracting anything first.
claunia added the enhancementup for grabs labels 2026-01-29 22:09:09 +00:00
Author
Owner

@Megamindzzz commented on GitHub (Dec 20, 2017):

have you already solved the problem?,if you have ,i wish you told me the medthod

@Megamindzzz commented on GitHub (Dec 20, 2017): have you already solved the problem?,if you have ,i wish you told me the medthod
Author
Owner

@coderb commented on GitHub (Dec 20, 2017):

0x80 bit flag in the archive header pre-rar5, presence of Archive Encryption Header post :-)

(haven't implemented the rar5 header yet so just going off the spec)

@coderb commented on GitHub (Dec 20, 2017): 0x80 bit flag in the archive header pre-rar5, presence of Archive Encryption Header post :-) (haven't implemented the rar5 header yet so just going off the spec)
Author
Owner
@ArsenyClean commented on GitHub (Jan 19, 2021): https://stackoverflow.com/questions/44548578/identify-rars-or-zips-with-password/65793169#65793169
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#258