|
|
#1 |
|
Mr. Developer
![]() Posts: 24
Karma: 10
Join Date: Feb 2024
Device: Kindle Voyage
|
Hi there guys, thanks for all your lovely support in helping me outwith my project. Lately I am thinking of making a KOReader plugin (keeping its details a suspense as for now
).For that, I wanted to know if I could unzip a password protected file. I have heard of a library named luazip but I think it doesn't support unzipping password protected files. Am I left with an option.
|
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,785
Karma: 731691
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
zlib is included, so in theory you can do some wrapper stuff around it. See here for writing zips:
https://github.com/koreader/koreader.../zipwriter.lua And here is a wrapper in C that also deals with crypt/decrypt. It probably doesn't make an awful lot of sense to ship that with KOReader; at least as a first step I mean that more as inspiration to write it in LuaJIT instead. https://github.com/zlib-ng/minizip-ng Although fwiw some bindings for minizip already exist too: https://github.com/luapower/minizip/ Though come to think of it, maybe you could outsource decryption to OpenSSL, which is also already included. |
|
|
|
| Advert | |
|
|
![]() |
| Tags |
| developer, kindle, koreader, plato |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Password protected zip file ? | jlb | KOReader | 0 | 07-11-2022 08:31 AM |
| Libra Can some books be password protected? | JJ Johnson | Kobo Reader | 3 | 10-17-2020 12:20 PM |
| Password-protected PDF | kamichai | Conversion | 4 | 06-21-2018 07:15 PM |
| Password protected purchases | SameOldStory | Amazon Fire | 16 | 05-13-2012 04:53 PM |
| Convert password protected mobipocket file | Ea | Kindle Formats | 1 | 10-11-2009 06:53 AM |