|  05-20-2016, 05:12 AM | #1 | 
| Evangelist            Posts: 416 Karma: 765432 Join Date: Apr 2016 Location: Italy Device: Kindle PW3 5.8.5.0.1 | 
				
				"Hide books" extension?
			 
			
			Hi, is it possible to hide some books that are already on my kindle storage? I share my kindle with my 9 years old child, and some books i have are not suitable for him. I think a Kual extension wich crypt some files in documents folder (can gpg be installed?) or simply rename or move them to another folder. I know that Kual can launch scripts, but is possible to give a password, select from the menu some books and pass these things as parameters for the script? (Or, in general, is it possible to do some sort of input in Kual and pass it to the script?) Edit: i made an extension for this. See see here and here Last edited by encol; 03-25-2018 at 04:16 PM. | 
|   |   | 
|  05-20-2016, 06:01 AM | #2 | |||
| Going Viral            Posts: 17,212 Karma: 18210809 Join Date: Feb 2012 Location: Central Texas Device: No K1, PW2, KV, KOA | Quote: 
 Hide from a nine year old: Not likely Quote: 
 Quote: 
 There is a post here about 'faking it' using zsh (zsh is included with the USBnetworking package). It might be possible to change KUAL to accept input from the 'search bar' - but I don't think anyone has looked into doing that. Plus - nearly the entire KUAL development team has moved on to other things. | |||
|   |   | 
|  05-20-2016, 07:00 AM | #3 | 
| Evangelist            Posts: 416 Karma: 765432 Join Date: Apr 2016 Location: Italy Device: Kindle PW3 5.8.5.0.1 | |
|   |   | 
|  05-20-2016, 07:07 AM | #4 | 
| Member  Posts: 15 Karma: 10 Join Date: May 2016 Device: Kindle PW3 | 
			
			My idea would be to convert your delicate ebooks to epub format. That way they wont show up in the kindle menu. You can then use librerator or koreader (or the dreaded Duokan) to read those epubs. It's not password locked, though.
		 | 
|   |   | 
|  05-20-2016, 07:35 AM | #5 | ||
| Evangelist            Posts: 416 Karma: 765432 Join Date: Apr 2016 Location: Italy Device: Kindle PW3 5.8.5.0.1 | Quote: 
 Quote: 
 Then, if the script recognises the password, it can hide the books that has some sort of "prefix" in the name (previously added by a file manager) | ||
|   |   | 
|  05-20-2016, 08:45 AM | #6 | 
| Going Viral            Posts: 17,212 Karma: 18210809 Join Date: Feb 2012 Location: Central Texas Device: No K1, PW2, KV, KOA | 
			
			How about this? Using your command line access (kTerm, ssh, telnet, serial port, etc) - Make a place for the book list script: Code: mntroot rw mv /usr/bin/logThis.sh /usr/bin/logThis.bak mntroot ro Code: #!/bin/sh find /mnt/us/documents "-name $@" >/mnt/us/extensions/booklist.txt Copy the above contents to top of visible storage as the file named: logThis.sh Safely remove - Remove USB cable Then again from your command line access: Code: mntroot rw cp /mnt/us/logThis.sh /usr/bin/logThis.sh mntroot ro In the search bar type: ;log hide-me-* Then (with however you view the USB storage - such as cable to PC) - You should find (no pun intended) a list of books with the prefix: 'hide-me-' in the file: /extensions/booklist.txt Note: If you remove the '-name' from inside the quotes of the script, then you can use any set of 'find' commands to create the list. The 'find' command that ships with 5.6.x and newer firmwares has this set of options: Code: Usage: find [PATH]... [EXPRESSION]
Search for files. The default PATH is the current directory,
default EXPRESSION is '-print'
EXPRESSION may consist of:
        -follow         Follow symlinks
        -xdev           Don't descend directories on other filesystems
        -maxdepth N     Descend at most N levels. -maxdepth 0 applies
                        tests/actions to command line arguments only
        -mindepth N     Don't act on first N levels
        -name PATTERN   File name (w/o directory name) matches PATTERN
        -iname PATTERN  Case insensitive -name
        -path PATTERN   Path matches PATTERN
        -regex PATTERN  Path matches regex PATTERN
        -type X         File type is X (X is one of: f,d,l,b,c,...)
        -perm NNN       Permissions match any of (+NNN), all of (-NNN),
                        or exactly NNN
        -mtime DAYS     Modified time is greater than (+N), less than (-N),
                        or exactly N days
        -mmin MINS      Modified time is greater than (+N), less than (-N),
                        or exactly N minutes
        -newer FILE     Modified time is more recent than FILE's
        -inum N         File has inode number N
        -user NAME      File is owned by user NAME (numeric user ID allowed)
        -group NAME     File belongs to group NAME (numeric group ID allowed)
        -depth          Process directory name after traversing it
        -size N[bck]    File size is N (c:bytes,k:kbytes,b:512 bytes(def.))
                        +/-N: file size is bigger/smaller than N
        -links N        Number of links is greater than (+N), less than (-N),
                        or exactly N
        -print          Print (default and assumed)
        -print0         Delimit output with null characters rather than
                        newlines
        -exec CMD ARG ; Run CMD with all instances of {} replaced by the
                        matching files
        -prune          Stop traversing current subtree
        (EXPR)          Group an expressionAll you have to do is decide how your going to 'hide' the books.  Note: just moving them out of /documents will hide them from the Kindle reader, but not from the KOreader, reader. Then, I suppose, we would need to preempt one or more search bar command keys to trigger the hiding and un-hiding action. = = = = Note: I have not tested any of the above, I just typed up my first thought. The above would be one way to create a list of books from a search bar command. Note 2: There is a very good routine (Argon2) to convert a passphrase (say, entered into the search bar) into a cryptographic key. https://github.com/janetizzy/phc-win.../tree/autotool Which I am working on to add autotool and cross-compile support. Note 3: Moving books into and out of a password protected zip file would probably 'hide' them well enough - especially if using Argon2 for the key generation from a searchbar entered passphrase. Last edited by knc1; 05-20-2016 at 08:57 AM. | 
|   |   | 
|  05-20-2016, 10:45 AM | #7 | 
| Evangelist            Posts: 416 Karma: 765432 Join Date: Apr 2016 Location: Italy Device: Kindle PW3 5.8.5.0.1 | 
			
			Thanks man, i'll try soon    | 
|   |   | 
|  05-20-2016, 11:04 AM | #8 | 
| Going Viral            Posts: 17,212 Karma: 18210809 Join Date: Feb 2012 Location: Central Texas Device: No K1, PW2, KV, KOA | 
			
			That is just the start of what would be a lot of scripting. no 'zip' utility (or any other password protected archive) - but openssl enc ... is included with the firmware. and, that openssl function accepts a passphrase - I'll see if my Argon2 will cross-compile for ARMel today - that would be used to generate the cyrpto quality openssl enc passphrase from user input on the search bar. At the moment, I am thinking to just turn each book into an encrypted, gzip'd file - - I don't think the Kindle will do anything foolish like try to index or display a *.gz file.  The Argon2 generated passphrase for the openssl enc function will **not** be stored on the Kindle - - So you will have to enter it into the search bar along with enc/dec command and the desired book. As each book is processed, it needs to update the booklist.txt file with 'old' and 'new' names (I think that would be easiest - a lot of this is just guess work). | 
|   |   | 
|  05-20-2016, 11:34 AM | #9 | |
| Just a Yellow Smiley.            Posts: 19,161 Karma: 83862859 Join Date: Jul 2015 Location: Texas Device: K4, K5,  fire, kobo, galaxy | Quote: 
 Can you just delete the books off the kindle temporarily and forget the wifi password? | |
|   |   | 
|  05-20-2016, 11:53 AM | #10 | 
| Going Viral            Posts: 17,212 Karma: 18210809 Join Date: Feb 2012 Location: Central Texas Device: No K1, PW2, KV, KOA | |
|   |   | 
|  05-20-2016, 12:19 PM | #11 | 
| Just a Yellow Smiley.            Posts: 19,161 Karma: 83862859 Join Date: Jul 2015 Location: Texas Device: K4, K5,  fire, kobo, galaxy | 
			
			The only real way I see for a 9 year old not to find the books is buy him his own kindle and make a special account with Amazon where he can only read books you find suitable.  How much do you trust your son to do what you say? | 
|   |   | 
|  05-20-2016, 12:32 PM | #12 | 
| Wizard            Posts: 1,179 Karma: 11573197 Join Date: Feb 2011 Location: London, UK Device: Voyage | 
			
			Isn't that what 'Kindle for kids' profiles are there for in the settings?
		 | 
|   |   | 
|  05-20-2016, 12:41 PM | #13 | 
| Just a Yellow Smiley.            Posts: 19,161 Karma: 83862859 Join Date: Jul 2015 Location: Texas Device: K4, K5,  fire, kobo, galaxy | |
|   |   | 
|  05-20-2016, 12:44 PM | #14 | |
| Going Viral            Posts: 17,212 Karma: 18210809 Join Date: Feb 2012 Location: Central Texas Device: No K1, PW2, KV, KOA | Quote: 
 I should just **use** my Kindles more than I do, rather than look at the insides of them. Ah, but other people have asked about keeping encrypted information on their Kindle, so we gave them a start towards a solution with this thread. | |
|   |   | 
|  05-20-2016, 01:23 PM | #15 | |
| Just a Yellow Smiley.            Posts: 19,161 Karma: 83862859 Join Date: Jul 2015 Location: Texas Device: K4, K5,  fire, kobo, galaxy | Quote: 
 Most of them have been using devices since before they could talk. | |
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Apple Mac now have a file extension ".iba" for the program "iBooks Author." | brucehobson | Calibre | 3 | 09-15-2014 07:46 PM | 
| KT "Ghost covers/files" again at 670 books, "stale" image entries in firmware | VirgoGirl | Kobo Reader | 4 | 04-06-2012 02:10 PM | 
| can Linux group-rights "hide" a library? | mclien | Library Management | 4 | 09-29-2011 03:20 PM | 
| "Add new format" to text file without extension | myudkowsky | Calibre | 4 | 11-25-2010 02:00 PM | 
| Calibre extension - "print driver"? | guiyoforward | Calibre | 5 | 09-06-2010 10:10 AM |