neilharvey / FileSignatures

A small library for detecting the type of a file based on header signature (also known as magic number).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Password protected xlsx

jpawar opened this issue · comments

The library does recognize xlsx format, however the password protected xlsx is not recognized because the header bytes are different for password protected spreadsheet. Is there a possibility that this feature could be added?

Hey, I've had a look at what happens to an Excel file when you password protect it, it looks as though it's being wrapped as a compound file binary.

In theory if we know the storage type we should be able to identify it as an Excel file - I'll have a proper look and see if I can work out what it should be.