Toolstia / Porta cipher

Porta cipher

The Porta cipher uses a keyword like Vigenere, but each pair of key letters picks one of 13 alphabets that swap the two halves of the alphabet. Enter a key and text. The same step encrypts and decrypts.

The Porta cipher uses 13 alphabets, and each pair of key letters such as AB or CD picks one. Letters A to M swap with letters N to Z, so running the cipher on its own output gives the original text back. Case, spaces and punctuation are kept, and the key moves only on letters.

How it works

  1. Enter a key made of letters.
  2. Type the text.
  3. Copy the result. To decrypt, run the result through again with the same key.

Reciprocal

Letters A to M turn into letters N to Z and the other way round, so applying the cipher twice with the same key returns the original text.

Key pairs

Key letters are used in pairs: A and B pick the first alphabet, C and D the second, and so on up to Y and Z.

Case and symbols

Upper and lower case are kept, and spaces, digits and punctuation pass through. The key moves only on letters.

History

It is named after Giovanni Battista della Porta, who described it in the 1500s.

Questions

Is my text uploaded?

Everything happens in your browser, and nothing you enter is sent anywhere.

Why is there no decrypt button?

Because the cipher is its own inverse. Running it again decrypts.

How is it different from Vigenere?

Vigenere shifts letters by the key letter. Porta swaps the two halves of the alphabet, and only 13 key choices matter.