C语言字符串加密解密

Dougie Dog has invented an "encryption" technique to keep secrets from
the Ferocious Kittens. Fortunately, cats are extremely intelligent, and have
cracked the simple code:

  1. Letters are grouped into pairs. Add a space to the end of the string
    if necessary to give it an even number of characters (here
    "character" means char.
  2. Make an int from each pair by sticking the bits from the first letter
    in front of the bits from the second letter. You may assume that we
    are using 8-bit ASCII.
  3. XOR the result with 31337.
    Decryption is performed with the same steps, but in reverse order.
    • Write a program that decrypts the above encrypted message.
    (hint: this will be a lot easier if you begin by writing a program to
    encrypt values -- you can check each step with "cats" and
    "kittens" to make sure you understand the process!)
    • You must use a function to split a large integer into two separate
    letters. This function may not print anything to the screen.
    (hint: how can a function return two values?)
    怎么写啊

先考英文,再考编程么?能自己翻译清楚,再提问么?

大哥这是IP lab写不完啦?