Encoding and Decoding a message using a Key and the MSP430