Implement encryption, decryption and validate the completeness of the file.