Two-Square Cipher
The Two-Square cipher (called also double Playfair) is a polygraphic substitution cipher. It replaces each plaintext pair of letters by another two letters, based on the two keyword tables. The tables are created based on two keywords (passwords) provided by the user.
For more detailed description of the Two-Square cipher, please visit Crypto-IT webpage.
First Password
Enter the first secret password. It will be used for creating the first table used for actual encryption/decryption. If no password is provided, the first table will be sorted alphabetically.
Enter the first secret password. It will be used for creating the first table used for actual encryption/decryption. If no password is provided, the first table will be sorted alphabetically.
Second Password
Enter the second secret password. It will be used for creating the second table used for actual encryption/decryption. If no password is provided, the second table will be sorted alphabetically.
Enter the second secret password. It will be used for creating the second table used for actual encryption/decryption. If no password is provided, the second table will be sorted alphabetically.
Input Message
Enter a message you want to encrypt/decrypt. After that, click the button below.
Enter a message you want to encrypt/decrypt. After that, click the button below.
Formatted Input Message
Preview the message that actually will be processed. Note, that only letters that are present in the table will be encrypted/decrypted.
Preview the message that actually will be processed. Note, that only letters that are present in the table will be encrypted/decrypted.
Parameters:
Treat J as I
Ignore Q
Ignore X Choose how to deal with the 26th letter of the Latin alphabet.
Treat J as I
Ignore Q
Ignore X Choose how to deal with the 26th letter of the Latin alphabet.
A | B | C | D | E |
F | G | H | I | K |
L | M | N | O | P |
Q | R | S | T | U |
V | W | X | Y | Z |
A | B | C | D | E |
F | G | H | I | K |
L | M | N | O | P |
Q | R | S | T | U |
V | W | X | Y | Z |
Note, that if two currently encrypted/decrypted letters are in the same row, they will remain unchanged and won't be replaced.
Note, that if two currently encrypted/decrypted letters are in the same row, they will remain unchanged and won't be replaced.
Output Message
The result of encryption/decryption. The output text may contain an additional letter, added if the original input message length is odd. Note, that only letters appear in the output text, all other characters were removed.
The result of encryption/decryption. The output text may contain an additional letter, added if the original input message length is odd. Note, that only letters appear in the output text, all other characters were removed.