How do i verify a file after decrypting it?

Hi, I have a question. After decrypting a file with Kleopatra, is there a simple way to verify that the decrypted file hasn’t been changed or corrupted? I understand the basic encryption process, but I’m not sure what should I check after decryption.

Hi @lilyhazel23,

it depends on the algorithm that was used for the encryption and what you want to do.
In general there is no way to check the integrity of a file (that it hasn’t been changed or corrupted on transport) just with the decryption. You would need to have a signature that you can verify.

This is why the recommendation is to sign all files that you are also encryption.

Some encryption algorithms have some build-in check-sum that may help with accidental corruption, so you could decryption the file in question again in a different direction and compare it with the one you have on disk. Okay, not that simple. :slight_smile: