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 Fri 25 Jul 2014, 09:45
All times are UTC - 4
 Forum index » Off-Topic Area » Security
Encrypt files with bcrypt in Puppy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
gliezl


Joined: 06 Aug 2005
Posts: 322
Location: Manila

PostPosted: Fri 11 Nov 2005, 04:07    Post subject:  Encrypt files with bcrypt in Puppy  

Is there any encryption scheme for Puppy? I want to encrpyt my file called topsecret.doc and sent it via email. At the receiving end, there's also a Puppy PC that will decrpyt my secret file with a password ofcourse. Atleast using 32-128 bit encryption.

Code:

e.g.
# cipher --passwd puppy106 topsecret.doc topsecret.encypted
# decipher --passwd puppy106 topsecret.encrypted topsecret.doc

_________________
"If you have knowledge, let others light their candles in it."
~Margaret Fuller

Back to top
View user's profile Send private message 
Guest
Guest


PostPosted: Fri 11 Nov 2005, 04:14    Post subject:  

bcrypt is easy to use

man page:
file:///usr/share/doc/bcrypt.htm
Back to top
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Fri 11 Nov 2005, 04:38    Post subject:  

by the way, bcrypt is available for Win32 too
http://bcrypt.sourceforge.net/
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2292
Location: Heart of Texas

PostPosted: Fri 11 Nov 2005, 04:58    Post subject: already in puppy!  

bcrypt is already in puppy v1,06. You are good to go!
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


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

PostPosted: Fri 11 Nov 2005, 05:22    Post subject:  

Go to the directory where your file is
right click with ROX and select Xterm here

type

Code:
# bcrypt mysecret.txt


where
mysecret.txt is the name of your secret file

You will then be prompted for an encryption key (twice - use the same one)
- if you can not tell the person or send a secure encryption key- then use a word only they would know and provide this in a seperate email

Code:
Encryption key:
Again:


a file is created called

mysecret.txt.bfe


This is encrypted. You send that.

To decrypt
use
Code:

bcrypt mysecret.txt.bfe


and put in the Encryption key when prompted

mysecret.txt is restored and readable . . .

Hey this would be a great/easy project for someone to put a front end on. Anyone up for it?

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
klhrevolutionist


Joined: 08 Jun 2005
Posts: 1124

PostPosted: Fri 11 Nov 2005, 05:30    Post subject: awesome  

Very nice. Another app already in puppy getting some attention.
Verynice indeed. Maybe this is why an announcement of packages
would be nice. Especially upgrades

_________________
Heaven is on the way, until then let's get the truth out!
Back to top
View user's profile Send private message 
andrew_in_uk

Joined: 08 Aug 2005
Posts: 10
Location: Bracknell, UK

PostPosted: Fri 11 Nov 2005, 08:17    Post subject:  

Another thing to note about bcrypt is that is will overwrite the input file with random data, to make it unrecoverable. (The default is 3 times, but you can tell it to do more).

This seems useful in itself, because (as in other OS's) "deleting" a file will still leave it in a recoverable state. Puppy does not have the Linux "shred" utility, which is usually the way to destroy files securely.

So, to get rid of a file more securely, why not bcrypt it with a random password, let the input file be shredded, and then delete the encypted version.

Does this seem a reasonable procedure?

A
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


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

PostPosted: Sat 12 Nov 2005, 04:40    Post subject: encrypt or decrypt  

Quote:
Hey this would be a great/easy project for someone to put a front end on. Anyone up for it?


OK I have made a start . . .
using just two lines of code - oh OK 3 if you include the header . . .

Code:
#!/bin/sh
FILE=`Xdialog --title "Choose file to encrypt or decrypt" --fselect / 28 48 2>&1`
rxvt -e bcrypt $FILE


Look under Dotpups and stuff for the 007 program for the installable version

PS - the shredding idea is good too "I did not eat those fish - quick destroy the evidence" Embarassed

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Guest
Guest


PostPosted: Sat 12 Nov 2005, 07:21    Post subject: Re: Encrypt files with bcrypt in Puppy  

gliezl wrote:
Is there any encryption scheme for Puppy? I want to encrpyt my file called topsecret.doc and sent it via email. At the receiving end, there's also a Puppy PC that will decrpyt my secret file with a password ofcourse. Atleast using 32-128 bit encryption.

Code:

e.g.
# cipher --passwd puppy106 topsecret.doc topsecret.encypted
# decipher --passwd puppy106 topsecret.encrypted topsecret.doc


I made a dotpup for GnuPG, which is the open source version of PGP. It's a public key encryption program, which is very good for email. If you're using Thunderbird for your email client there is a very good gui for GnuPG which installs as a plugin/extension into Thunderbird. I don't have the url handy, but you can do a search for GnuPG and get more information on it.


There isn't a parallel of latitude but thinks it would have been the equator if it had had its rights. ~ Mark Twain



Remember, democracy never lasts long. It soon wastes, exhausts and murders itself. There never was a democracy yet that did not commit suicide.

~ John Adams



...democracies have ever been spectacles of turbulence and contention; have ever been found incompatible with personal security or the rights of property; and have in general been as short in their lives as they have been violent in their deaths. ~ -James Madison, Federalist Paper 10
Back to top
Johnny Reb


Joined: 05 Aug 2005
Posts: 132
Location: The Confederate States of America (occupied)

PostPosted: Sat 12 Nov 2005, 07:33    Post subject:  

That last post was mine, it seems my login expired on me.


When the Founders thought of democracy, they saw democracy in the political sphere, a sphere strictly limited by the Constitution's well-defined and enumerated powers given the federal government. Substituting democratic decision-making for what should be private decision-making is nothing less than tyranny dressed up. ~ Walter E. Williams



Fifty-one percent of a nation can establish a totalitarian regime, suppress minorities and still remain democratic. ~ Erik von Kuehnelt-Leddihn



The human race divides politically into those who want people to be controlled and those who have no such desire. ~ Robert A. Heinlein

_________________
He who dares not offend cannot be honest.
~ Thomas Paine
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger 
ICQ Number 
Guest
Guest


PostPosted: Sat 12 Nov 2005, 15:31    Post subject:  

Just curious, PGP uses private and public keys which makes it possible to share info without have to agree on any specific code solution and the code will change according to the pivate key you uses to open your info, hope you can follow what i mean. The question here is , in wich way are bcypt unbreakable. compared to PGP.
Back to top
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10929
Location: Arizona USA

PostPosted: Sat 12 Nov 2005, 15:51    Post subject:  

I think I know enough about the subject of encryption to say with confidence that nobody claims any encryption process is impossible to break, only that it would take so long that it isn't worth doing. (Unless you have an unlimited budget and nothing better to do.)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Security
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.0843s ][ Queries: 12 (0.0096s) ][ GZIP on ]