Cryptography/Substitution Algorithms

< Cryptography

Substitutions are quite simple. As the name implies, they substitute one thing for another to encrypt plaintext into ciphertext. The key is the arrangement of the characters (if we're dealing with an alphabet substitution) that tells us what is exchanged for what.

Consider the alphabet and a rotation cipher of 2 positions.

abcdefghijklmnopqrstuvwxyz becomes
cdefghijklmnopqrstuvwxyzab

To encrypt, replace all letters in your plain text with the corresponding letter below it, as given in the box above. For example, using this method,

marie huynh wrote this

becomes

octkg jwapj ytqvg vjku

To decrypt, simply replace these letters with the corresponding ones above.

This article is issued from Wikiversity - version of the Tuesday, March 15, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.