Move decryption into its own function.
Start decoding the data.