Page 1 of 1

Encrypt files with bcrypt in Puppy

Posted: Fri 11 Nov 2005, 08:07
by gliezl
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: Select all

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

Posted: Fri 11 Nov 2005, 08:14
by Guest
bcrypt is easy to use

man page:
file:///usr/share/doc/bcrypt.htm

Posted: Fri 11 Nov 2005, 08:38
by GuestToo
by the way, bcrypt is available for Win32 too
http://bcrypt.sourceforge.net/

already in puppy!

Posted: Fri 11 Nov 2005, 08:58
by Ted Dog
bcrypt is already in puppy v1,06. You are good to go!

Posted: Fri 11 Nov 2005, 09:22
by Lobster
Go to the directory where your file is
right click with ROX and select Xterm here

type

Code: Select all

# 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: Select all

Encryption key:
Again:
a file is created called

mysecret.txt.bfe


This is encrypted. You send that.

To decrypt
use

Code: Select all

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?

awesome

Posted: Fri 11 Nov 2005, 09:30
by klhrevolutionist
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

Posted: Fri 11 Nov 2005, 12:17
by andrew_in_uk
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

encrypt or decrypt

Posted: Sat 12 Nov 2005, 08:40
by Lobster
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: Select all

#!/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" :oops:

Re: Encrypt files with bcrypt in Puppy

Posted: Sat 12 Nov 2005, 11:21
by Guest
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: Select all

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

Posted: Sat 12 Nov 2005, 11:33
by Johnny Reb
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

Posted: Sat 12 Nov 2005, 19:31
by Guest
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.

Posted: Sat 12 Nov 2005, 19:51
by Flash
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.)