The Portax Cipher is a classical polygraphic substitution cipher that combines elements of the Porta Cipher with structured digraph processing. It operates on pairs of letters and uses a repeating keyword to control how each pair is transformed. Unlike simple substitution ciphers, the Portax Cipher modifies both letters in a pair simultaneously, increasing diffusion and reducing recognizable patterns.
The cipher typically processes plaintext in digraphs (pairs of letters). If the plaintext length is odd, a padding character (commonly "X") is added to ensure complete pairs. The keyword is repeated to align with each digraph, and a Porta-style substitution is applied to transform the pair into ciphertext.
Portax Cipher: Encoding
To encrypt using the Portax Cipher, the plaintext is normalized, padded if necessary, and split into digraphs. The keyword is then applied to each pair:
Plaintext: HELLOPORTAX
Keyword: KEY
Padding: X
Step 1: Normalize and pad plaintext
HELLOPORTAX → HELLOPORTAXX
Step 2: Split into digraphs
HE LL OP OR TA XX
Step 3: Apply Portax transformation using keyword
Ciphertext:
DGGGXWWTNGOOEach digraph is transformed according to the corresponding letter of the keyword, producing a ciphertext where both letters of each pair are altered together.
Portax Cipher: Decoding
Decoding reverses the digraph transformation using the same keyword. Because the cipher is structured and deterministic, applying the same key restores the original padded plaintext:
Ciphertext: DGGGXWWTNGOO
Keyword: KEY
Padding: X
Step 1: Reverse Portax transformation on each digraph
Step 2: Reassemble plaintext
Plaintext:
HELLOPORTAXXThe trailing X represents padding added during encryption and may be removed if not part of the original message.
Portax Cipher: Notes
The Portax Cipher blends digraph substitution with keyword-based control. Key characteristics include:
- Type: Polygraphic substitution cipher (digraph-based)
- Key: repeating keyword applied per digraph
- Unit: pairs of letters (digraphs)
- Padding: typically "X" for odd-length plaintext
- Operation: Porta-style substitution applied to letter pairs
- Strengths: increases diffusion by transforming two letters at once; reduces simple frequency patterns
- Weaknesses: still vulnerable to digraphic analysis and known-plaintext attacks
The Portax Cipher is a useful extension of the Porta Cipher, demonstrating how operating on digraphs can significantly increase complexity. It serves as a bridge between simple polyalphabetic ciphers and more advanced polygraphic systems.