tested the encryption and decryption with the saved key.