45
15
I've encrypted a file using symmetric encryption like this:
gpg --symmetric myfile
which results in a file myfile.gpg
.
Alright. Now let's decrypt the file again:
gpg -o myfile --decrypt myfile.gpg
I'm being asked for the passphrase I've put on, and then I see
gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase
gpg: WARNING: message was not integrity protected
I'm not sure about the first and last line there.
- What is the CAST5 cipher and is it secure? I know 3DES and AES and I know those are secure.
- Why isn't it protected for integrity?
- And moreover, how do I fix this?
Btw you can just
gpg -c myfile
to encrypt andgpg myfile.gpg
to decrypt, output will be decryptedmyfile
by default. – cprn – 2016-10-12T14:36:43.2401@CyprianGuerra
gpg myfile.gpg
will result in decrypted output sent to stdout on my system... – gertvdijk – 2016-10-13T13:40:06.853Interesting. I have it on defaults... – cprn – 2016-10-14T01:13:52.693
I downloaded GUI from here and decrypted file using it. It worked! https://pgptool.github.io/
– Iftikhar Ahmad Dar – 2019-09-23T15:29:54.987