Within a computer, binary is used to encode and decode messages by translating letters into numeric codes using a binary alphabet, where each letter has an assigned code separated by slashes for different letters and spaces to separate words. The document encourages trying activities that allow encoding and decoding messages between binary and English by writing your own messages and name in binary.