Jump to content

pgp message : decrypt this in a tool

Go to solution Solved by Thomas53,

Run this command:

 

gpg --MESSAGE.txt --decrypt MESSAGE.gpg

 

Then follow the prompts.

hello and good day, 🤩


today i have a special topi: the question is: how to decrypt a pgp based messag !?

first of all: used pgp years ago .- long time not any more.

but HAVE KEYS AND all that sort of things on my linux box here - two days ago my friend send me a messsage that is necrypted: now i need to read the message.
do you suggest to use a so called pgp-tray to read the message -(wherasi can import the keys etc.)

 

Whats your opinion here - what would you use here -.

Okay some of you surely would recommend the terminal - but the question is: Are theree some tools out there  - eg. like pgtray that may be used here?
Hmm - well i really hope that i have been able to spell out what i need - and what is the case here

 

Dear friends, i  look forward to hear from you

best regards 🙂

 


update: some thougths that you might understand my situation a bit better:  i received an encrypted PGP message, and i still have some old keys on the Linux machine, but it’s been a while since i  last used PGP. In other words i just basically want the simplest, safest way to decrypt and read the message.

 

what can be a good approach: i think that there are some methods, options ways here /(at least they come up to my thoughts): 

 

a. i first could check if i still have GnuPG (GPG) installed on the box
that said: the very most Linux systems already have gpg installed. the check can be done by running:

 

gpg --version

 

duhhh - If it’s missing on the box i need to install it with the package manager (for example sudo apt install gnupg). But i am pretty sute that the keys do not mis - i have a lot of them here.

but - generallly spoken (and this might be usefful for others - if they step through the whole process. 

 

we could ..../we should. : 

 

b. Import my (or just say "the") private key (especially then if not already in your keyring).  If i have a backup key file (often something like private.asc), we  might import it with:

 

gpg --import private.asc


And besides this we also might list what keys are already available with:

 

gpg --list-secret-keys


and now the point:  the decryt-process itself ( aarghhhhh )  - and i think this is painful - its a pain in the sss.: 

c. Decrypt the message: 

note my  friend sent me a file, say message.asc, i can decrypt it with:


 

gpg --decrypt message.asc

GPG will ask me for the passphrase of the private key. After entering it, the plaintext message will appear.

but duuuhh - what if i do not know the passphrase right now - it i cant remember it - [shhhhhit ]  - what can i dn now - what is possiible here. 

 

well i could tell this to my friend - and we have to work out new set of keys - dont we!?

 

 

by the way - regarding the tool set


d Optional – PGP Tray or GUI tools
 

in earlier times i d prefered something with a graphical interface rather than the command line:
 

a. Seahorse (GNOME key manager, integrates with GPG)

b. PGP Tray (less common nowadays, but can still work)

well - these tools let us manage keys and decrypt messages through a tray icon or context menus. But hmmm -  for a one-time read, gpg --decrypt is the most straightforward.

 

 

whats your idea - whats your tipp 

i guess i ve forgotten the passpharse - shit shit shit 

 

interested in all things Linux - and Arduino / RaspBerryPi :: besides that in WordPress - and its development: - with the options to extend with more than 50 Tsd Pliugins: Thats so awesome 😉

Link to comment
https://linustechtips.com/topic/1621395-pgp-message-decrypt-this-in-a-tool/
Share on other sites

Link to post
Share on other sites

hi there dear Thomas53 🙂

 

many thsnks  at the moment i am not in front of the machine - but i wil ld this later the day. 

i come back and report all the findings. 

 

Again many thanks 

interested in all things Linux - and Arduino / RaspBerryPi :: besides that in WordPress - and its development: - with the options to extend with more than 50 Tsd Pliugins: Thats so awesome 😉

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×