The next thing, i.e., substitution, is performed by a device called S-box. For example, if we take a simple S-box which consists of a 3 to 8 bit decoder at the input, a P-box and 8 to 3 encoder at the output, i.e., if we enter a 3-bit plain text at the input, a 3-bit cipher text will be received as an output.