![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 9502
Join Date: Oct 2010
Location: California
Device: Kindle 3 WiFi, Kindle 4 Touch
|
Password protecting collections {idea}
--- edit ---
So, it seems like this idea has been done by ixtab, that wonderful coder. Here's a link for the patch. https://www.mobileread.com/forums/sho...d.php?t=175512 The tweak protects individual books. More info and analysis about it here: https://www.mobileread.com/forums/sho...0&postcount=89 --- original post --- There's been an idea of password protecting collections originally brought up in this thread: https://www.mobileread.com/forums/sho...2024093#post21 Copy of the post in spoiler: Spoiler:
Can someone post a hint or two on where to get started? I don't really want to decompile, edit, and compile the GUI. Is there a way to inject code, like how iOS uses mobile substrate? Any input appreciated. Thanks! Last edited by vaniaspeedy; 05-26-2012 at 05:18 PM. |
![]() |
![]() |
![]() |
#2 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
I'm afraid there is no way around at least the "decompiling" step, in order to even understand what is going on internally. If you're lucky, you may find ways to "inject" custom code without changing original classes, but it really depends on the implementation. And the implementation is almost guaranteed to be (at least slightly) different for the various devices...
![]() |
![]() |
![]() |
![]() |
#3 |
Groupie
![]() ![]() Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
Hmm, another idea might be using password-protected archives (maybe tar/gzip supports those?..) to pack books that you want to password-hide and unpack them when you want them to show? Still user error-prone (one might forget to "hide" his books, no password prompt on opening a book, etc.), but a way to start...
|
![]() |
![]() |
![]() |
#4 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 9502
Join Date: Oct 2010
Location: California
Device: Kindle 3 WiFi, Kindle 4 Touch
|
Quote:
1. figure out how to intercept the user's touch 2. create a dialog that receives and checks the password 3. some action that will make the books accessible after the password is entered For 1, we could use the GUI launcher, but then might as well use the folder hider plug in instead. Thoughts? |
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
If it's for single books, another option comes to my mind. You could implement another FUSE based layer filesystem that does encryption of data and on file access (e.g. first read) pop up a password interface.
That said, I'm using a FUSE interface to ZIP files on my K3. I never bothered to add in a user interface, though. I'm just mounting and unmounting with a launchpad keyboard shortcut. From a developer's standpoint, it is an esoteric solution: I used the Go language for that. In fact, I did not write a single bit of code, I just re-used an example which comes with go-fuse (https://github.com/hanwen/go-fuse), "zipfs". It would not be hard to extend this to some point and implement encryption support (maybe even ZIP's AES encryption). I would also add an external interface to provide a password that is stored for a given amount of time. Using that interface, a GUI launcher based solution could be implemented to ask for a password and pass it to the filesystem daemon. But don't be too optimistic - this is still hard developer work. I just wanted to offer an example for a possible solution. If I have some free time, I might open another thread and go into detail how I use that "zipfs" in my workflow on a K3. |
![]() |
![]() |
![]() |
#6 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 9502
Join Date: Oct 2010
Location: California
Device: Kindle 3 WiFi, Kindle 4 Touch
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 9502
Join Date: Oct 2010
Location: California
Device: Kindle 3 WiFi, Kindle 4 Touch
|
Quote:
![]() Last edited by vaniaspeedy; 05-12-2012 at 03:03 PM. |
|
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 9502
Join Date: Oct 2010
Location: California
Device: Kindle 3 WiFi, Kindle 4 Touch
|
So, it seems like this has been done by ixtab, that wonderful coder. Here's a link for the patch.
https://www.mobileread.com/forums/sho...d.php?t=175512 The tweak protects individual books. More info and analysis about it here: https://www.mobileread.com/forums/sho...0&postcount=89 |
![]() |
![]() |
![]() |
Tags |
collections, gui, inject, mobilesubstrate, password |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
protecting epub files from copying & printing | cyberbaffled | ePub | 45 | 06-28-2018 10:17 AM |
Protecting a Kobo eReader at the gym? | triffids | Kobo Reader | 7 | 10-28-2010 10:17 PM |
PRS-600 Advice: protecting the ereader | edlauzon | Sony Reader | 1 | 07-18-2010 12:48 PM |
Protecting the PRS-700 | abermp | Sony Reader | 14 | 05-09-2009 12:51 AM |