Adding parity check to encrypt/decrypt

The number of characters read in from the file should be even, as we
need two characters per byte.  I've added a check of parity to both
encrypt and decrypt to ensure this is the case before proceeding.