Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 03-19-2024, 11:46 AM   #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, 02: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,633
Karma: 724945
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
Reply

Tags
developer, kindle, koreader, plato

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Password protected zip file ? jlb KOReader 0 07-11-2022 07:31 AM
Libra Can some books be password protected? JJ Johnson Kobo Reader 3 10-17-2020 11:20 AM
Password-protected PDF kamichai Conversion 4 06-21-2018 06:15 PM
Password protected purchases SameOldStory Kindle Fire 16 05-13-2012 03:53 PM
Convert password protected mobipocket file Ea Kindle Formats 1 10-11-2009 05:53 AM


All times are GMT -4. The time now is 04:33 PM.


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