Encrypting Multisession Puppy

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

Encrypting Multisession Puppy

#1 Post by Lobster »

:D

It is all very well having a Mult-Session Pup but what about sensitive data?

eg
  • favourite religious porn again sites
    location of Atlantis
    the secret name of fish shoals . . .
    list of patients
- that sort of thing

What is required is a keydisk ( I would code it myself but am too stoopid)
Here is what I tried . . .

Code: Select all

#!/bin/sh
# Lobster June 4 2005 Key info file save and encrypt - decrypt v 0.4
clear
cp -i /mnt/floppy/pkf.bfe /tmp/pkf.bfe
Xdialog --msgbox "This program keeps a secure datafile on this floppy. 
Even if the floppy is lost, 
without the password the info file is secure" 0 0
Xdialog --msgbox "your file is being copied to /tmp/pkf.bfe" 0 0
bcrypt /tmp/pkf.bfe
Xdialog --msgbox "Opening textfile in Leafpad Text editor" 0 0
leafpad /tmp/pkf
Now this does work in the following circumstances:

1. encrypt a file using bcrypt from the command line
(even James Bond could manage that without editing skills)
the command is bcrypt [name of file] from the CLI
that is built into Puppy
I use the name pkf (for Puppy Key File)
For most people this will create a second file called pkf.bfe
with a login password and blowfish [ . . . ahem . . . or Blofeld . . .
. . . no blowfish] encryption

2. On a floppy disk
(tsk. . . tsk . . . didn't you know real agents use ye olde
technology - not gadgetery which says Property of Her Majs Govt on it)
- anyway on a floppy disk place pkf.bfe and keypup.sh (that is the above piece of code)

3. Mount your floppy drive

3. activate the script by typing ./keypup.sh

4. keep an eye on the tmp directory (this is the first problem - Linux seems to have a read and write - anytime you like - policy) Eventually the file pkf.bfe turns up

This is the part of the code copying to the tmp folder

Code: Select all

cp -i /mnt/floppy/pkf.bfe /tmp/pkf.bfe
So you have to wait before continuing

5 Next you must use your secret login code
- now we have the situation of the blowfish decyption - if it is a big file
this takes time and writing and altering pkf.bfe to pkf will be up to a couple of minutes - it you open the leafpad file too soon nothing will be there and you have an empty file (thus thwarting your enemies and saving the location of Atlantis) . . . however not what you expected

the bcrypt code is neat - typing in bycrypt [name of file]
encrypts it - giving it the extension .bfe
running it like so

Code: Select all

bcrypt /tmp/pkf.bfe
it realises that the .bfe is encoded and decodes it . . .

:arrow: Now Puppys :) pay careful attention. As the world owned (or bought) by MicroSoft Redhat enters a new era - simplicity and portability is quite important

A keyfile could be stored and retrieved on floppy, keydrive, A multi-session Puppy or (with FTP facilities) any web space.

Now this is only my third script attempt - so I need to know
1. Is tmp the best place to expand (and delete files from)?
2. Can the write to disk be forced or speeded up?
3. Do I have to read ALL of the Rute guide?

All comments welcome

I am starting to read the files created for dotpup and all of Barrys scripts in /etc/sbin (I think it is)

This mission statement will self construct as soon as you are ready
:roll:

Have fun

8)

Post Reply