View Single Post
Old 02-21-2013, 11:07 PM   #122
Feher
Addict
Feher ought to be getting tired of karma fortunes by now.Feher ought to be getting tired of karma fortunes by now.Feher ought to be getting tired of karma fortunes by now.Feher ought to be getting tired of karma fortunes by now.Feher ought to be getting tired of karma fortunes by now.Feher ought to be getting tired of karma fortunes by now.Feher ought to be getting tired of karma fortunes by now.Feher ought to be getting tired of karma fortunes by now.Feher ought to be getting tired of karma fortunes by now.Feher ought to be getting tired of karma fortunes by now.Feher ought to be getting tired of karma fortunes by now.
 
Posts: 201
Karma: 1495184
Join Date: Jan 2013
Device: Onyx Boox M92, Nook Simple Touch
Quote:
Originally Posted by bartp5 View Post
I thought I'd share some scripts I wrote to password-protect files and folders on my boox. I made the scripts such that when encrypting a file the script automatically packs in any annotations and notes related to the file. When installed it creates two applications in the applications menu, one to encrypt and one to decrypt. The encrypting script lets you select a file of which it then creates a self-extracting script-archive (in the directory where the original files were). I made this program primarily to encrypt pdf files together with the annotations and wanted to make it easy to open, edit, close and re-encrypt the file. I therefore made the script-archive such that when clicking the archive it prompts for a password, attempts to de-crypt your file, and upon success open the file. After editing the file the file is automatically re-encrypted when the file is closed. This automatic opening and re-encryption currently works for txt files (nice for saving your passwords in a text file on your boox) and pdf files (with the old pdf-reader). This functionality can easily be extended to other file-types For all other file-types and for directories clicking the script once de-crypts, clicking it again re-encrypts the files.

For the encryption it uses ncrypt (AES-encryption). After encrypting files the original files are deleted (use at your own risk and keep backups). Note however that in flash memory there is no way to reliably access a specific physical location due to the flash transition layer. This makes it impossible to do a secure delete of a single file in flash memory (i.e. after encryption and subsequent deletion of the original files, large chunks of the original files are still floating around in the flash memory and could be accessed with specialized software). So bear that in mind when you encrypt your multi-million dollar secrets.

The script use slightly modified versions of the previously published scripting primitives. The filebrowser was adapted to be able to open directories (a lazy hack really, created a button to select a directory) and the input widget was adapted to return an empty string when the escape of close button is clicked (so one can abort typing a password and my scripts will abort too) and I made a bugfix which made the switching between plain text and password input a bit awkward.

The installer script includes the scripting archives (and asks before overwriting anything). I attached a zip file with the program and installer scripts and a patch file so you can patch the source of kodomo's scripting primitives.

Hope you can make sense of this post
I cannot seem to run it.Somebody please provide more details to installation.
Here is what i did: copied the archive to internal memory and ran install.oar; after reboot two icons appeared in Applications but nothing happens when i click on them. What else do i need to do, i am on latest firmware. Also what is the function of "script_prim.patch"
Feher is offline   Reply With Quote