Finalized encryption and decryption