CPE 645 / CS 685
Applied Cryptography

Breaking the Rail Fence

Index of coincidence and chi-square both come back saying English. That is the detection, not a failure.

CryptanalysisTranspositiondemo
Objectives
  • Show that a transposition leaves both letter statistics unchanged.

  • Diagnose a transposition from English counts on unreadable text.

  • Brute-force the rail count and recover the message.


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