Git Product home page Git Product logo

Comments (6)

tfussell avatar tfussell commented on July 23, 2024

Hi Nai-Yuan,

There are two kinds of password protection. One encrypts the file, the other just adds an attribute to the XML. The second kind should already work since that attribute is ignored though I haven't tested it. File level encryption is more complicated, but I should be able to implement it if there's demand for it. Could you possibly send me a basic password-protected file and the password so I can try it? (I don't have Excel on my laptop) My email is .

Thomas

from xlnt.

nychiang avatar nychiang commented on July 23, 2024

Hi Thomas,

Thanks for your reply and sorry for my late reply. I just came back from a
business trip.
I attached one password protected .xlsx file for you to test, and its
password is "test".

Thanks again for your help.

Cheers,

Nai-Yuan

On Thu, Sep 22, 2016 at 8:29 PM, Thomas Fussell [email protected]
wrote:

Hi Nai-Yan,

There are two kinds of password protection. One encrypts the file, the
other just adds an attribute to the XML. The second kind should already
work since that attribute is ignored though I haven't tested it. File level
encryption is more complicated, but I should be able to implement it if
there's demand for it. Could you possibly send me a basic
password-protected file and the password so I can try it? (I don't have
Excel on my laptop) My email is [email protected] .

Thomas


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#69 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJpqPBU9y_ZRZHEK2NEDnPghirvoSNW3ks5qsx1vgaJpZM4KEfUP
.

from xlnt.

tfussell avatar tfussell commented on July 23, 2024

Hi Nai-Yuan,

I'm afraid the attachment didn't come through on the email. It looks like you may be able to attach it here if you want to try again. I do have some updates on implementing this feature. It's been a nice little challenge reverse engineering how this encryption system works. I now have code working for reading encrypted XLSX files from before Office 2013. Newer XLSX files use a different type of encryption called Agile which I think I will be able to finish in the next few days.

Thomas

from xlnt.

tfussell avatar tfussell commented on July 23, 2024

Hi Nai-Yuan,

I've recently committed some code for reading encrypted XLSX files. It will require you to link with NSS which is the only cryptographic provider I could find which implements the form of encryption used by Excel 2013 and later. If you're on windows you can use the new submodule called third-party/nss to compile this library (cd third-party/nss && mkdir build && cd build && cmake .. && cmake --build .) On Linux and OS X you'll need to change the include_directories in cmake/xlnt.cmake to point to the location of your system NSS libraries installed via Homebrew or another package manager. Lastly, you'll need to compile xlnt with the new cmake definition "-D WITH_CRYPTO=1". I'll continue to make this process easier in the coming week.

Thomas

from xlnt.

nychiang avatar nychiang commented on July 23, 2024

Hi Thoms,

Thanks a lot for your help!
This is really an exciting news.

Cheers,

Nai-Yuan

On Oct 24, 2016 8:41 AM, "Thomas Fussell" [email protected] wrote:

Hi Nai-Yuan,

I've recently committed some code for reading encrypted XLSX files. It
will require you to link with NSS which is the only cryptographic provider
I could find which implements the form of encryption used by Excel 2013 and
later. If you're on windows you can use the new submodule called
third-party/nss to compile this library (cd third-party/nss && mkdir build
&& cd build && cmake .. && cmake --build .) On Linux and OS X you'll need
to change the include_directories in cmake/xlnt.cmake to point to the
location of your system NSS libraries installed via Homebrew or another
package manager. Lastly, you'll need to compile xlnt with the new cmake
definition "-D WITH_CRYPTO=1". I'll continue to make this process easier in
the coming week.

Thomas


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#69 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJpqPCYSN0JF7jG0eM4rQwlyqrVHjGDeks5q3KeEgaJpZM4KEfUP
.

from xlnt.

tfussell avatar tfussell commented on July 23, 2024

It was quite complicated to implement, but I learned a lot about cryptography in the process. I managed to change nss over to botan yesterday which is significantly easier to build. Cryptography will be included with all builds now so there's no need to add "-D WITH_CRYPTO=1" to cmake. I only had a few example of encrypted XLSX files so there may be some that don't work yet. Please reopen this issue if it doesn't work for you.

from xlnt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.