Subject: | Feature request - is_signed(), is_encrypted() |
Hello,
I would like to ask for adding a feature which consists of ways to
determine whether data in question is either signed/encrypted or not.
Determining if data are signed could be achieved with % gpg --multifile
--verify; command, I think(= from my toying around with % gpg;).
I have no idea how to determine whether data are encrypted. Calling %
gpg; with same parameters at encrypted data exits with return code 0,
and RC > 0 if data are not encrypted/signed, however prints no message
at all.
I've tried to garble encrypted data by deleting one line and this made %
gpg; complain a lot, so could one assume RC = 0 means data are encrypted
and OK, and RC > 0 data are either not encrypted or broken?
It also could look for "BEGIN PGP" and "END PGP", however I'm not sure
how credible this information is. I mean, one could assume this
information is correct and eventual decryption is going to fail anyway,
if this is incorrect.
I have zero knowledge and experience with % gpg;, so this is just wild
guessing, toying around and experimentation.
Thanks,
Zdenek