LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-23-2016, 03:58 PM   #1
TheLinuxCake
Member
 
Registered: Dec 2015
Posts: 31
Blog Entries: 1

Rep: Reputation: Disabled
Sssues with decrypting messages with GnuPG


To start, not sure to put this here, or in software. Sorry if it is in the wrong area.
Hello, I am currently having issues decrypting things with GnuPG. Whenever I try to decrypt things with GnuPG nothing much happens.
I have a message, and the key that it should be using.
What I'm doing:
Code:
foo@fooComputer:~$gpg --output message.txt
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1

################################################################
################################################################
###################[Encrypted Message]##########################
################################################################
################################################################
################################################################

-----END PGP MESSAGE-----
You need a passphrase to unlock the secret key for
user: "##### #### <foo@foo.foo>"
2048-bit RSA key, ID ########, created ####-##-## (main key ID #######)

gpg: encrypted with 2048-bit RSA key, ID #######, created ####-##-##
      "###### ##### <#######@foo.foo>"
And nothing is returned. No file, no displayed text. I have also tried it with no "--output message.txt"
 
Old 07-24-2016, 06:21 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Then the key is wrong....
 
Old 07-25-2016, 01:50 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,610
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
As documented in man gpg, the command will exit with a return code of at least '1' if a key is incorrect. It should also produce other messages to advise you exactly what went wrong.
 
  


Reply

Tags
decryption, encryption, gpg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BACULA: encrypt messages with gnupg and send them to bsmtp Red Pantyhose Linux - Software 3 07-22-2008 07:03 AM
BACULA: encrypt messages with gnupg and send them to bsmtp Red Pantyhose Linux - Security 1 07-21-2008 09:04 AM
BACULA: encrypt messages with gnupg and send them to bsmtp Red Pantyhose Linux - Server 1 07-21-2008 09:04 AM
GnuPG file decrypting rblampain Linux - Security 4 08-11-2005 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration