You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using jpgpj to decrypt file. My program received an unencrypted file and tried to decrypt it.
I expected an exception will be thrown. But I got a empty file with no exception. Please help me.
the data in the file is
H000001018
Regards
The text was updated successfully, but these errors were encountered:
Add a simple file-detection utility function to scan the first few bytes
of an input stream, and check if it looks like either:
* a pgp binary file
* an ascii-armor file
* or a gpg keybox file
When decrypting, if this utility determines the input stream is not a
pgp binary file or an ascii-armor file, decryption will fail by raising
a `PGPException` with a message "not a pgp message".
Sorry for taking so long to respond -- the latest version of JPGPJ (0.6.1) should do a better job of checking if a file is encrypted before trying to decrypt it. If the file is clearly not a PGP-encrypted file, JPGPJ will now raise a org.bouncycastle.openpgpg.PGPException (with a message "not a pgp message").
Hello,
I'm using jpgpj to decrypt file. My program received an unencrypted file and tried to decrypt it.
I expected an exception will be thrown. But I got a empty file with no exception. Please help me.
the data in the file is
H000001018
Regards
The text was updated successfully, but these errors were encountered: