Silk Road forums

Discussion => Security => Topic started by: Christy Nugs on January 08, 2012, 01:48 am

Title: gpg linux mint HELP!!!!!!!!!!
Post by: Christy Nugs on January 08, 2012, 01:48 am
I just switched to linux mint 10 and am dying here lol
great os but cant figure out how to encrypt - decrypt  text in any document or anything.
all of the directions say how to install and get public key - that's great but how u decrypt text imho the whole point.
I did the key deal without directions but for the life of me i can't do the text deal.
I know that gpg and seahorse is installed on this os but there are no user directions that i have been able to find.
I have tried multiple terminal deals to no avail. is it just this os?
please respond - i have packages to ship soon and cant read addresses.  :(
Title: Re: gpg linux mint HELP!!!!!!!!!!
Post by: Laughing Man on January 08, 2012, 02:59 am
You can run "gpg --help" from a terminal and it will tell you exactly how to use it from the command line, or you can install GPA which is a great GPG frontend.
Title: Re: gpg linux mint HELP!!!!!!!!!!
Post by: Christy Nugs on January 08, 2012, 04:27 am
gpg--help: command not found
it is installed on my mint10 as is seahorse
i am able to encrypt with right click but am not able to decrypt with right click
when i select - highlight a pgp message on my order page i get neither encrypt or decrypt.
this is fine but when i move the selected text to a regular text file i can't  do it either.
idk - i am new to linux and completely out of my domain.

i will open the prog and select help file by itself now.
will report back
Title: Re: gpg linux mint HELP!!!!!!!!!!
Post by: TravellingWithoutMoving on January 08, 2012, 04:57 am
gpg --help

{gpg space --help}

probably :-
gpg --decrypt  file.txt.asc
Title: Re: gpg linux mint HELP!!!!!!!!!!
Post by: Christy Nugs on January 08, 2012, 01:00 pm
yea i got the plugins with sudo and i can encrypt now but there is no right click option to decrypt.
I tried the terminal thing also.

http://xfq5l5p4g3eyrct7.onion/view.php?image=675d72a64ebb0b95b34e7d4d04e167b6.png

hmmm idk...
Title: Re: gpg linux mint HELP!!!!!!!!!!
Post by: unbiased on January 08, 2012, 02:27 pm
*******COPY PASTE THE COMMANDS*******

Make a key (it will most likely be placed in /home/christy/.gnupg):
gpg --gen-key

Import your key (let's it's your own, and it's called christy.key):
gpg --import christy.key

View keys:
gpg --list-keys

Export your key (where christy.pub is the public key, and the name of the key you are exporting is christy):
gpg --output christy.pub --export christy

Create a message called test.txt.  Now, run a test on your key, with test.txt.encrypted as the encrypted output file:
gpg --output test.txt.encrypted --armor --encrypt --recipient christy test.txt

Now view your encrypted message to confirm it has the PGP block in it.  Now decrypt your test message:
gpg --decrypt test.txt.encrypted

This is also a good reference page (I think the man pages suck for gpg):
www.gnupg.org/gph/en/manual/c14.html
Title: Re: gpg linux mint HELP!!!!!!!!!!
Post by: zomgwtfbbq on January 08, 2012, 02:30 pm
I don't think you're going to get a "decrypt" option ever when you right-click and highlight something.  Never seen that before.

The problem with your command-line sequence (from the screenshot) is the space in your filename and also the fact that the directory you're in when you open a terminal window is not the same as the directory where the file is.  When you open a terminal window, you are in your home directory.  The file is on your desktop (the Desktop folder).

so... putting it all together:

gpg --decrypt "Desktop/new file.asc"

should do the job.