Discrete Math

Shift Cipher

Given a message and an integer k less than 26, encrypt this message using the shift cipher with key k; and given a message encrypted using a shift cipher with key k, decrypt this message.