> Before I decrypt a file, this file does have a .pgp extension, how do I
> know if it is a valid encrypted file before I decrypt it?

I'm not sure what you're asking here, to be honest.  What's an invalid
encrypted file?  If I send you an encrypted file containing nothing but
random data, the successful decryption of the valid file will be
statistically indistinguishable from trying to decrypt it with an
incorrect session key.

And in some other respects, the OpenPGP standard makes it very easy for
an implementation to detect bad or corrupted data and to bail out early.

So without knowing precisely what you mean by 'validity', I don't know
what to tell you, I'm sorry.



_______________________________________________
Gnupg-users mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to