Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 18 Jun 2018, 23:20
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Encrypting Multisession Puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
Official Crustacean

Joined: 04 May 2005
Posts: 15238
Location: Paradox Realm

PostPosted: Mon 06 Jun 2005, 02:39    Post subject:  Encrypting Multisession Puppy  

Very Happy

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

    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 . . .

# Lobster June 4 2005 Key info file save and encrypt - decrypt v 0.4
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

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
bcrypt /tmp/pkf.bfe

it realises that the .bfe is encoded and decodes it . . .

Arrow Now Puppys Smile 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
Rolling Eyes

Have fun

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0260s ][ Queries: 11 (0.0045s) ][ GZIP on ]