Each letter in the word is replaced by the letter which occupies the same position from the other end of the English alphabet, and the group of letters so obtained is then written in the reverse order to get the code. Thus, we have:
CRUELTY → XIFVOGB → BGOVFIX