common functions file for steps common to both encryption and decryption. Slap a troat day is tomorrow.