Types of Ciphers
Ciphers come in two basic forms:
Transposition ciphers—A transposition cipher rearranges characters or bits of data.
Substitution ciphers—A substitution cipher replaces bits, characters, or blocks of information with other bits, characters, or blocks.
Transposition Ciphers
A simple transposition cipher writes characters into rows in a matrix and then reads the columns as output. For example, write the message “ATTACK AT DAWN” into a four-column matrix, as shown in FIGURE 7-2.
Then, read the information in columns: ACDTKATAWATN, which would be the ciphertext. The key would be {1,2,3,4}, ...
Get Fundamentals of Information Systems Security, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.