The conversion of information or data into a code.