Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 03-19-2024, 12:46 PM   #1
Maimun Ahmed
Mr. Developer
Maimun Ahmed began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Feb 2024
Device: Kindle Voyage
Exclamation Unzipping a password-protected file

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.
Maimun Ahmed is offline   Reply With Quote
Old 03-19-2024, 03:25 PM   #2
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,676
Karma: 730583
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.
Frenzie is offline   Reply With Quote
Advert
Reply

Tags
developer, kindle, koreader, plato


Forum Jump

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 Kindle Fire 16 05-13-2012 04:53 PM
Convert password protected mobipocket file Ea Kindle Formats 1 10-11-2009 06:53 AM


All times are GMT -4. The time now is 08:28 PM.


MobileRead.com is a privately owned, operated and funded community.