Redirected from Cryptography/s-box
An s-box can often be treated as a simple substitution:
Each input symbol is replaced (substituted) by another. If a "1" goes into the s-box, a "3" comes out. If a "4" goes into the s-box, a "2" comes out. For example, given an input string "14231", we replace the "1" with "3", the "4" with "2", and so on, giving "32143" as output.
In order to decipher the output text, it is simply fed into the s-box in reverse, giving the original inputs.
wikipedia.org dumped 2003-03-17 with terodump