Monoalphabetic substitution cipher

Theory

With this cipher, every letter in the plaintext is mapped to another. It is a general form of the caesar cipher,atbash,.

A simple implementation would be:


mapping = {"a":"b", "b":"c", "c":"d", ...};
plaintext = "hello";
ciphertext = plaintext.map(letter => mapping[letter]);
        

Encrypt/Decrypt

Enter the text:

enter the key:

Smart Decrypt iterations:

Found Key:

Score:

Rotate the key this much:

Swap characters:

Results show here