Encode or decode a message using a specified shift in the alphabet