CPE 645 / CS 685
Applied Cryptography
Calculators

The S-Box

Build your own four-bit S-box. The page tests whether it is still reversible and still non-linear, then runs the cipher with it.

S-boxNon-linearitydemo
Objectives
  • Test whether a lookup table is a bijection.

  • Measure how many output bits one input bit changes.

  • Apply the XOR test that separates a linear box from a non-linear one.

  • Explain why a linear S-box leaves the whole cipher linear.

  • Predict what a duplicated output does to decryption.


Static site. Every demo computes in your browser, and nothing you type is sent anywhere.