lucanaef / PGPro

OpenPGP En- & Decryption App for iOS
https://pgpro.app
GNU General Public License v3.0
382 stars 35 forks source link

Decryption #147

Open Pixann121 opened 5 months ago

Pixann121 commented 5 months ago

For the pass two days I’m not able to Decrypt messages in PGPro App. I don’t know what’s wrong

ibnaleem commented 4 months ago

Have you tried decrypting the message in gnupg?

snex commented 3 months ago

Having same issue - I can decrypt the message fine with gnupg. PGPro just says failed to decrypt with no other info.

Encryption works - I notice that data encrypted with PGPro has a few metadata lines at the top. Is it expecting these in the input to decrypt as well? Because gnupg does not create these lines.

ibnaleem commented 2 months ago

Provide these "metadata lines"

snex commented 2 months ago

Here is a full message:

-----BEGIN PGP MESSAGE-----
Version: ObjectivePGP
Comment: https://www.objectivepgp.com
Charset: UTF-8

wcFMA5uXyqGTX6eRARAAn04alUn9DTA7XAwCqwrRHlLaMPE2qEBbEkVpKpArrhPNa5tvduZJDU08
4tMwS5vbQqDzuLewqdByBmOk8pb9N6BC9hYXeYYumoRkKwCmdxt0nV6m7fUtPKK4LE/N0th5xZn+
jI27SqjcV9hB3Projn7j2M3ZVgdA8IV76h6a132YuYLv9Dbas5Ie9GW8jqzSZ5zPSYjhv+VlSneL
hXwfEMruFnFnT+GquCEkClrsosqKEtT+E8XOGjqVAPiJiLgTXevORkLIOKBSCLhro9K25+PUojS8
7wclYz+0yclzr50IJuJNAB1KDp6Kskk9j6BaANoBmexrjk2oM9frghK26ZoeNsvkUOhKCGeLJMMb
EEQqSfRzyqWvlB2d4FEUXkGQri3KocbGa3JnDHnaWsbgutFYoB8qmTuihEvmN0L3Xe9RY9NsLe4N
wilgUzPoZChMUibr4TSMT6hjfQObdAFu7BWvR609ly69SBy7nCJ3wu6GfD3rcX13WpYGHMLLL++g
TxJhQ6RGdPKEhUygc3/fYTqesNe4p7K1ggO3SX7eIcQSZ3CwIERlEMrp++7x4ziF9DOSDCYyQdkz
DkcTStGF8bgWkb+bDHIdMGSMWur36LzrD01PUUAY4+4QTco59F+GN3k/oxHcoQBMi656aqYesHpB
h4wdiMQO3guduh/2r7HSSAF+W0eb2ajvrvCXlv6nXvOYVONrKxFBLl6nHEp4wflpEIyYDIdMFLHR
OWsKaYEQ1q4yxmNsPArVF3OundkfY7B3FwOU9AApmA==
=b/m0
-----END PGP MESSAGE-----

The "Version", "Comment" and "Charset" lines are not normally in PGP messages made by gnupg.

ibnaleem commented 2 months ago

These are Armor headers which are perfectly normal and do not interfere with encryption/decryption.

PGPro is encrypting messages in Armor mode with Armor headers; the problem does not lie in the Armor headers but something else entirely.

snex commented 2 months ago

The app should give a more detailed error message so that users can figure out what's going on.