CPE 645 / CS 685
Applied Cryptography
Calculators

A Block Cipher Is a Permutation

Edit a small three-bit cipher until two messages share one ciphertext. Then ask the page to decrypt that ciphertext.

Reversibilitydemo
Objectives
  • Decide whether a small mapping can be used as a block cipher.

  • Explain why two plaintexts sharing a ciphertext leaves decryption unable to recover the plaintext.

  • Distinguish a function on the block space from a permutation of it.

  • Compare the number of reversible mappings against the number of functions over the same block.

  • Estimate how many bits a key needs to identify one permutation.


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