Are we talking password protected archives like rar, zip, 7z and so on?
If so you most likely need to try decompressing them and if that fails it's probably protected
Here are some examples for zip and rar
Hi all,
I have a script which uploads file and checks for file size and type(pdf only) for my web-app, saves it the folder, saves path in the dbase.
My question: How do I check if the file uploaded by the user is encrypted or password protected and prevent that?
My Laravel knowledge: basic, can get things done.
Please or to participate in this conversation.