Permutation Cipher

Work in progress. This note is still being written and incomplete.

1 min read Last updated Tue Aug 04 2026 03:56:01 GMT+0000 (Coordinated Universal Time)

Requires a block length nn, typically small, and a permutation σSn\sigma \in S_n as the secret key.

σ=(1234524135)\sigma = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 \\ 2 & 4 & 1 & 3 & 5 \end{pmatrix}

Encrypts the plaintext HELLO as ciphertext LHLEO.

Attacking Permutation Ciphers

A character frequency analysis matching the standard distribution exactly reveals that a substitution cipher, not a permutation cipher, was used, since permutation ciphers preserve single-character frequencies.

Was this helpful?