Finalized the encryption