GPG suite decrypted file is 0 byte











up vote
2
down vote

favorite












I have a file encrypted with GPG suite 2 years ago...



I need it now and tried to decrypt it but the resulting zip file is 0 bytes :((



What does that mean ?



I also tried the CLI and Im getting



gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key


EDIT



If I put --batch the file is decrypted but I cannot find it anywhere



gpg --passphrase "mypassword" -d --batch --ignore-mdc-error myFilePath



gpg: WARNING: message was not integrity protected










share|improve this question
























  • Questions: (1) What is your operating system? (2) Is gpg the latest version? (3) Or is gpg the same version as encrypted the file? There have been reports about gpg version 2 having problems decrypting gpg version 1.4.
    – harrymc
    Nov 17 at 20:01










  • OSX 10.14.1, latest GPG using homebrew, not sure what was my version of the encrypted file; I was using GPG tools at the time 2 years ago
    – jotyhista
    Nov 17 at 20:40















up vote
2
down vote

favorite












I have a file encrypted with GPG suite 2 years ago...



I need it now and tried to decrypt it but the resulting zip file is 0 bytes :((



What does that mean ?



I also tried the CLI and Im getting



gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key


EDIT



If I put --batch the file is decrypted but I cannot find it anywhere



gpg --passphrase "mypassword" -d --batch --ignore-mdc-error myFilePath



gpg: WARNING: message was not integrity protected










share|improve this question
























  • Questions: (1) What is your operating system? (2) Is gpg the latest version? (3) Or is gpg the same version as encrypted the file? There have been reports about gpg version 2 having problems decrypting gpg version 1.4.
    – harrymc
    Nov 17 at 20:01










  • OSX 10.14.1, latest GPG using homebrew, not sure what was my version of the encrypted file; I was using GPG tools at the time 2 years ago
    – jotyhista
    Nov 17 at 20:40













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I have a file encrypted with GPG suite 2 years ago...



I need it now and tried to decrypt it but the resulting zip file is 0 bytes :((



What does that mean ?



I also tried the CLI and Im getting



gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key


EDIT



If I put --batch the file is decrypted but I cannot find it anywhere



gpg --passphrase "mypassword" -d --batch --ignore-mdc-error myFilePath



gpg: WARNING: message was not integrity protected










share|improve this question















I have a file encrypted with GPG suite 2 years ago...



I need it now and tried to decrypt it but the resulting zip file is 0 bytes :((



What does that mean ?



I also tried the CLI and Im getting



gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key


EDIT



If I put --batch the file is decrypted but I cannot find it anywhere



gpg --passphrase "mypassword" -d --batch --ignore-mdc-error myFilePath



gpg: WARNING: message was not integrity protected







gnupg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 17 at 22:02

























asked Nov 17 at 17:16









jotyhista

153




153












  • Questions: (1) What is your operating system? (2) Is gpg the latest version? (3) Or is gpg the same version as encrypted the file? There have been reports about gpg version 2 having problems decrypting gpg version 1.4.
    – harrymc
    Nov 17 at 20:01










  • OSX 10.14.1, latest GPG using homebrew, not sure what was my version of the encrypted file; I was using GPG tools at the time 2 years ago
    – jotyhista
    Nov 17 at 20:40


















  • Questions: (1) What is your operating system? (2) Is gpg the latest version? (3) Or is gpg the same version as encrypted the file? There have been reports about gpg version 2 having problems decrypting gpg version 1.4.
    – harrymc
    Nov 17 at 20:01










  • OSX 10.14.1, latest GPG using homebrew, not sure what was my version of the encrypted file; I was using GPG tools at the time 2 years ago
    – jotyhista
    Nov 17 at 20:40
















Questions: (1) What is your operating system? (2) Is gpg the latest version? (3) Or is gpg the same version as encrypted the file? There have been reports about gpg version 2 having problems decrypting gpg version 1.4.
– harrymc
Nov 17 at 20:01




Questions: (1) What is your operating system? (2) Is gpg the latest version? (3) Or is gpg the same version as encrypted the file? There have been reports about gpg version 2 having problems decrypting gpg version 1.4.
– harrymc
Nov 17 at 20:01












OSX 10.14.1, latest GPG using homebrew, not sure what was my version of the encrypted file; I was using GPG tools at the time 2 years ago
– jotyhista
Nov 17 at 20:40




OSX 10.14.1, latest GPG using homebrew, not sure what was my version of the encrypted file; I was using GPG tools at the time 2 years ago
– jotyhista
Nov 17 at 20:40










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Try to replace your current homebrew version by GPG 1.4.



One alarming text from the above link:




GnuPG 1.4 is the old, single binary version which still support the unsafe PGP-2 keys.




As the last version 1.4 dates from only 5 months ago, this might explain why
your current version doesn't support your keys format, if they are in the
PGP-2 format.



(General note: When files are encrypted, one should always take in account
the possibility that software changes might make decryption impossible
after some years. Encryption is not a long-term solution.)






share|improve this answer





















  • Thank you for the suggestion I'll try I went to the link but this is not a binary... I am not familiar how to compile.. :s is it possible to install with brew ?
    – jotyhista
    Nov 17 at 21:03












  • actually I managed to install it and tried to decrypt but no success with the same command as above. gpg (GnuPG) 1.4.23
    – jotyhista
    Nov 17 at 21:11










  • actually it worked but different command using gpg --decrypt file > file.zip
    – jotyhista
    Nov 17 at 21:20










  • could I please ask a last advice, now I managed to decrypt; I would like to uninstall the 1,4; how can I do that with files I had to compile myself, brew is saying that v2.21 is already installed so I have a conflict I guess, if I do gpg --version I get 1.4
    – jotyhista
    Nov 17 at 21:35












  • actually I got it brew link --overwrite gnupg
    – jotyhista
    Nov 17 at 21:41











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376273%2fgpg-suite-decrypted-file-is-0-byte%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










Try to replace your current homebrew version by GPG 1.4.



One alarming text from the above link:




GnuPG 1.4 is the old, single binary version which still support the unsafe PGP-2 keys.




As the last version 1.4 dates from only 5 months ago, this might explain why
your current version doesn't support your keys format, if they are in the
PGP-2 format.



(General note: When files are encrypted, one should always take in account
the possibility that software changes might make decryption impossible
after some years. Encryption is not a long-term solution.)






share|improve this answer





















  • Thank you for the suggestion I'll try I went to the link but this is not a binary... I am not familiar how to compile.. :s is it possible to install with brew ?
    – jotyhista
    Nov 17 at 21:03












  • actually I managed to install it and tried to decrypt but no success with the same command as above. gpg (GnuPG) 1.4.23
    – jotyhista
    Nov 17 at 21:11










  • actually it worked but different command using gpg --decrypt file > file.zip
    – jotyhista
    Nov 17 at 21:20










  • could I please ask a last advice, now I managed to decrypt; I would like to uninstall the 1,4; how can I do that with files I had to compile myself, brew is saying that v2.21 is already installed so I have a conflict I guess, if I do gpg --version I get 1.4
    – jotyhista
    Nov 17 at 21:35












  • actually I got it brew link --overwrite gnupg
    – jotyhista
    Nov 17 at 21:41















up vote
1
down vote



accepted










Try to replace your current homebrew version by GPG 1.4.



One alarming text from the above link:




GnuPG 1.4 is the old, single binary version which still support the unsafe PGP-2 keys.




As the last version 1.4 dates from only 5 months ago, this might explain why
your current version doesn't support your keys format, if they are in the
PGP-2 format.



(General note: When files are encrypted, one should always take in account
the possibility that software changes might make decryption impossible
after some years. Encryption is not a long-term solution.)






share|improve this answer





















  • Thank you for the suggestion I'll try I went to the link but this is not a binary... I am not familiar how to compile.. :s is it possible to install with brew ?
    – jotyhista
    Nov 17 at 21:03












  • actually I managed to install it and tried to decrypt but no success with the same command as above. gpg (GnuPG) 1.4.23
    – jotyhista
    Nov 17 at 21:11










  • actually it worked but different command using gpg --decrypt file > file.zip
    – jotyhista
    Nov 17 at 21:20










  • could I please ask a last advice, now I managed to decrypt; I would like to uninstall the 1,4; how can I do that with files I had to compile myself, brew is saying that v2.21 is already installed so I have a conflict I guess, if I do gpg --version I get 1.4
    – jotyhista
    Nov 17 at 21:35












  • actually I got it brew link --overwrite gnupg
    – jotyhista
    Nov 17 at 21:41













up vote
1
down vote



accepted







up vote
1
down vote



accepted






Try to replace your current homebrew version by GPG 1.4.



One alarming text from the above link:




GnuPG 1.4 is the old, single binary version which still support the unsafe PGP-2 keys.




As the last version 1.4 dates from only 5 months ago, this might explain why
your current version doesn't support your keys format, if they are in the
PGP-2 format.



(General note: When files are encrypted, one should always take in account
the possibility that software changes might make decryption impossible
after some years. Encryption is not a long-term solution.)






share|improve this answer












Try to replace your current homebrew version by GPG 1.4.



One alarming text from the above link:




GnuPG 1.4 is the old, single binary version which still support the unsafe PGP-2 keys.




As the last version 1.4 dates from only 5 months ago, this might explain why
your current version doesn't support your keys format, if they are in the
PGP-2 format.



(General note: When files are encrypted, one should always take in account
the possibility that software changes might make decryption impossible
after some years. Encryption is not a long-term solution.)







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 17 at 20:51









harrymc

248k10257548




248k10257548












  • Thank you for the suggestion I'll try I went to the link but this is not a binary... I am not familiar how to compile.. :s is it possible to install with brew ?
    – jotyhista
    Nov 17 at 21:03












  • actually I managed to install it and tried to decrypt but no success with the same command as above. gpg (GnuPG) 1.4.23
    – jotyhista
    Nov 17 at 21:11










  • actually it worked but different command using gpg --decrypt file > file.zip
    – jotyhista
    Nov 17 at 21:20










  • could I please ask a last advice, now I managed to decrypt; I would like to uninstall the 1,4; how can I do that with files I had to compile myself, brew is saying that v2.21 is already installed so I have a conflict I guess, if I do gpg --version I get 1.4
    – jotyhista
    Nov 17 at 21:35












  • actually I got it brew link --overwrite gnupg
    – jotyhista
    Nov 17 at 21:41


















  • Thank you for the suggestion I'll try I went to the link but this is not a binary... I am not familiar how to compile.. :s is it possible to install with brew ?
    – jotyhista
    Nov 17 at 21:03












  • actually I managed to install it and tried to decrypt but no success with the same command as above. gpg (GnuPG) 1.4.23
    – jotyhista
    Nov 17 at 21:11










  • actually it worked but different command using gpg --decrypt file > file.zip
    – jotyhista
    Nov 17 at 21:20










  • could I please ask a last advice, now I managed to decrypt; I would like to uninstall the 1,4; how can I do that with files I had to compile myself, brew is saying that v2.21 is already installed so I have a conflict I guess, if I do gpg --version I get 1.4
    – jotyhista
    Nov 17 at 21:35












  • actually I got it brew link --overwrite gnupg
    – jotyhista
    Nov 17 at 21:41
















Thank you for the suggestion I'll try I went to the link but this is not a binary... I am not familiar how to compile.. :s is it possible to install with brew ?
– jotyhista
Nov 17 at 21:03






Thank you for the suggestion I'll try I went to the link but this is not a binary... I am not familiar how to compile.. :s is it possible to install with brew ?
– jotyhista
Nov 17 at 21:03














actually I managed to install it and tried to decrypt but no success with the same command as above. gpg (GnuPG) 1.4.23
– jotyhista
Nov 17 at 21:11




actually I managed to install it and tried to decrypt but no success with the same command as above. gpg (GnuPG) 1.4.23
– jotyhista
Nov 17 at 21:11












actually it worked but different command using gpg --decrypt file > file.zip
– jotyhista
Nov 17 at 21:20




actually it worked but different command using gpg --decrypt file > file.zip
– jotyhista
Nov 17 at 21:20












could I please ask a last advice, now I managed to decrypt; I would like to uninstall the 1,4; how can I do that with files I had to compile myself, brew is saying that v2.21 is already installed so I have a conflict I guess, if I do gpg --version I get 1.4
– jotyhista
Nov 17 at 21:35






could I please ask a last advice, now I managed to decrypt; I would like to uninstall the 1,4; how can I do that with files I had to compile myself, brew is saying that v2.21 is already installed so I have a conflict I guess, if I do gpg --version I get 1.4
– jotyhista
Nov 17 at 21:35














actually I got it brew link --overwrite gnupg
– jotyhista
Nov 17 at 21:41




actually I got it brew link --overwrite gnupg
– jotyhista
Nov 17 at 21:41


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376273%2fgpg-suite-decrypted-file-is-0-byte%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

Puebla de Zaragoza

Musa