The Wayback Machine - https://web.archive.org/web/20240927172950/https://www.geeksforgeeks.org/traditional-symmetric-ciphers/
Open In App

Traditional Symmetric Ciphers

Last Updated : 14 Oct, 2019
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

The two types of traditional symmetric ciphers are Substitution Cipher and Transposition Cipher. The following flowchart categories the traditional ciphers:

1. Substitution Cipher:
Substitution Ciphers are further divided into Mono-alphabetic Cipher and Poly-alphabetic Cipher.

First, let’s study about mono-alphabetic cipher.

  1. Mono-alphabetic Cipher –
    In mono-alphabetic ciphers, each symbol in plain-text (eg; ‘o’ in ‘follow’) is mapped to one cipher-text symbol. No matter how many times a symbol occurs in the plain-text, it will correspond to the same cipher-text symbol. For example, if the plain-text is ‘follow’ and the mapping is :

    • f -> g
    • o -> p
    • l -> m
    • w -> x

    The cipher-text is ‘gpmmpx’.

    Types of mono-alphabetic ciphers are:

    (a). Additive Cipher (Shift Cipher / Caesar Cipher) –
    The simplest mono-alphabetic cipher is additive cipher. It is also referred to as ‘Shift Cipher’ or ‘Caesar Cipher’. As the name suggests, ‘addition modulus 2’ operation is performed on the plain-text to obtain a cipher-text.

    C = (M + k) mod n
    M = (C – k) mod n

    where,
    C -> cipher-text
    M -> message/plain-text
    k -> key

    The key space is 26. Thus, it is not very secure. It can be broken by brute-force attack.
    For more information and implementation see Caesar Cipher

    (b). Multiplicative Cipher –
    The multiplicative cipher is similar to additive cipher except the fact that the key bit is multiplied to the plain-text symbol during encryption. Likewise, the cipher-text is multiplied by the multiplicative inverse of key for decryption to obtain back the plain-text.

    C = (M * k) mod n
    M = (C * k-1) mod n

    where,
    k-1 -> multiplicative inverse of k (key)

    The key space of multiplicative cipher is 12. Thus, it is also not very secure.

    (c). Affine Cipher –
    The affine cipher is a combination of additive cipher and multiplicative cipher. The key space is 26 * 12 (key space of additive * key space of multiplicative) i.e. 312. It is relatively secure than the above two as the key space is larger.
    Here two keys k1 and k2 are used.

    C = [(M * k1) + k2] mod n
    M = [(C – k2) * k1-1 ] mod n

    For more information and implementation, see Affine Cipher

    Now, let’s study about poly-alphabetic cipher.

  2. Poly-alphabetic Cipher –
    In poly-alphabetic ciphers, every symbol in plain-text is mapped to a different cipher-text symbol regardless of its occurrence. Every different occurrence of a symbol has different mapping to a cipher-text. For example, in the plain-text ‘follow’, the mapping is :

    f -> q
    o -> w
    l -> e
    l -> r
    o -> t
    w -> y

    Thus, the cipher text is ‘qwerty’.

    Types of poly-alphabetic ciphers are:

2. Transposition Cipher:
The transposition cipher does not deal with substitution of one symbol with another. It focuses on changing the position of the symbol in the plain-text. A symbol in the first position in plain-text may occur in fifth position in cipher-text.

Two of the transposition ciphers are:

  1. Columnar Transposition Cipher –
    For information and implementation, see Columnar Transposition Cipher
  2. Rail-Fence Cipher –
    For information and implementation, see Rail-Fence Cipher

Previous Article
Next Article

Similar Reads

Autokey Cipher | Symmetric Ciphers
Autokey Cipher is a polyalphabetic substitution cipher. It is closely related to the Vigenere cipher but uses a different method of generating the key. It was invented by Blaise de Vigenère in 1586. In general, more secure than the Vigenere cipher. Example-1: Plaintext = "HELLO" Autokey = N Ciphertext = "ULPWZ" Example-2: Plaintext = "GEEKSFORGEEKS
4 min read
Stream Ciphers
In stream cipher, one byte is encrypted at a time while in block cipher ~128 bits are encrypted at a time. Initially, a key(k) will be supplied as input to pseudorandom bit generator and then it produces a random 8-bit output which is treated as keystream. The resulted keystream will be of size 1 byte, i.e., 8 bits. Stream ciphers are fast because
4 min read
Difference between AES and DES ciphers
Advanced Encryption Standard (AES) is a highly trusted encryption algorithm used to secure data by converting it into an unreadable format without the proper key while Data Encryption Standard (DES) is a block cipher with a 56-bit key length that has played a significant role in data security. In this article, we are going to discuss the difference
5 min read
Traditional TCP
Transmission Control Protocol (TCP) is the transport layer protocol that serves as an interface between client and server. The TCP/IP protocol is used to transfer the data packets between transport layer and network layer. Transport protocol is mainly designed for fixed end systems and fixed, wired networks. In simple terms, the traditional TCP is
4 min read
Difference between Next Generation Network and Traditional Network
1. Next Generation Network : In short Next Generation Network is termed as NGN which is packet based network used for both telephony and data. It uses multiple broadband and Quality of Services (QoS) enabled transport technologies to establish advance communication system. NGN can handle multiple type of services/traffic such as voice, audio, video
5 min read
Difference between Software Defined Network and Traditional Network
Whenever it comes to networks, new trends keep on adding up and thus it becomes essential to know about the dissimilarities that SDN Networks and Traditional Networks possess. Given the ever-increasing need for the expansion, fault tolerance, and resource optimization of the networks that connect today’s business environments, organizations, and IT
7 min read
Difference between Traditional WAN and SD WAN
With corporations evolving and businesses trusting the applications stored in the cloud, more confusion and improved networking solutions that are faster, dependable, and cheaper have become primordial. Wide Area Networks have been the cornerstone of enterprise networking for an extended period, but with the advent of SDN WANs provide a more adapta
6 min read
Difference between Traditional Data Center and Software Defined Data Center
Data centers vary a lot in design, and there has been much development in the lifetime of this project. Originally, data centers were structures that provided facilities for computer systems, storage, and other networking equipment. However, with the rapid evolution of virtualization, autopilot and cloud technologies Software Defined Data Centers (
5 min read
Difference between Traditional Firewall and Next Generation Firewall
With the development of cyber threats, advanced protection mechanisms are highly required for network protection by organizations. Firewalls serve as the base defense between trusted internal networks and untrusted external networks by separating these two with its existence. Traditional Firewalls and NGFWs gradually developed from these time-evolv
5 min read
Fernet (symmetric encryption) using Cryptography module in Python
Cryptography is the practice of securing useful information while transmitting from one computer to another or storing data on a computer. Cryptography deals with the encryption of plaintext into ciphertext and decryption of ciphertext into plaintext. Python supports a cryptography package that helps us encrypt and decrypt data. The fernet module o
3 min read
Symmetric Stripline
This is a type of Transmission Media. It is one of the reliable methods for creating a transmission line. It is a transverse electromagnetic (TEM) transmission line. This was invented by Robert M. Barrett. In case of calculating the values then you can consider the following parameters. A stripline is a W unit wide and T units thick strip of conduc
1 min read
Symmetric Cipher Model
Symmetric Encryption is the most basic and old method of encryption. It uses only one key for the process of both the encryption and decryption of data. Thus, it is also known as Single-Key Encryption. A few basic terms in Cryptography are as follows: Plain Text: original message to be communicated between sender and receiver Cipher Text: encoded f
3 min read
What Should Be the Length of the Symmetric Key in Cryptography?
In cryptography, a message is secured by encrypting it with a certain key and then sending it over the network. The security of the encryption process depends upon the key length. The article focuses on discussing the appropriate key length of the symmetric key in cryptography. What is Key Length?The keys are used to control the operation of a ciph
5 min read
Symmetric Key Cryptography
Symmetrical Key Cryptography also known as conventional or single-key encryption was the primary method of encryption before the introduction of public key cryptography in the 1970s. In symmetric-key algorithms, the same keys are used for data encryption and decryption. This type of cryptography plays a crucial role in securing data because the sam
11 min read
How does Symmetric and Asymmetric Key Cryptography Works Together?
While using the symmetric and the asymmetric key cryptography the secure communication system can take advantage of all the parameters and the outcomes of both. As for the second type of key, the areas of application of symmetric key cryptography are high efficiency and the speed at which operations are carried out, therefore, it is advisable to us
9 min read
Difference Between Symmetric and Asymmetric Key Encryption
Encryption is one of the most basic concepts in the world of cybersecurity as it ensures that some information does not fall into the wrong hands. There are two primary types of encryption techniques: In encryption techniques, there are two types, namely symmetric key encryption and asymmetric key encryption. Anyone involved in data security must k
4 min read
Computer Network Tutorial
A computer network is a collection of computers or devices connected to share resources. Any device which can share or receive the data is called a Node. Through which the information or data propagate is known as channels, It can be guided or unguided. In this Computer network tutorial, you’ll learn basic to advanced concepts like the Basics of co
10 min read
Difference Between OSI Model and TCP/IP Model
Data communication is a process or act in which we can send or receive data. Understanding the fundamental structures of networking is crucial for anyone working with computer systems and communication. For data communication two models are available, the OSI (Open Systems Interconnection) Model, and the TCP/IP (Transmission Control Protocol/Intern
5 min read
Advanced Encryption Standard (AES)
Advanced Encryption Standard (AES) is a specification for the encryption of electronic data established by the U.S. National Institute of Standards and Technology (NIST) in 2001. AES is widely used today as it is much stronger than DES and triple DES despite being harder to implement. In this article, we will cover the AES, the Working of Cipher an
8 min read
Top 50 Plus Networking Interview Questions and Answers for 2024
Networking is defined as connected devices that may exchange data or information and share resources. A computer network connects computers to exchange data via a communication media. Computer networking is the most often asked question at leading organizations such Cisco, Accenture, Uber, Airbnb, Google, Nvidia, Amazon, and many others. To get int
15+ min read
Types of Computer Networks
A computer network is a cluster of computers over a shared communication path that works to share resources from one computer to another, provided by or located on the network nodes. In this article, we will discuss computer networks and their types. What is a Computer Network?A computer network is a system that connects many independent computers
11 min read
Difference Between IPv4 and IPv6
The address through which any computer communicates with our computer is simply called an Internet Protocol Address or IP address. For example, if we want to load a web page or download something, we require the address to deliver that particular file or webpage. That address is called an IP Address. There are two versions of IP: IPv4 and IPv6. IPv
7 min read
Differences between TCP and UDP
Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) both are protocols of the Transport Layer Protocols. TCP is a connection-oriented protocol whereas UDP is a part of the Internet Protocol suite, referred to as the UDP/IP suite. Unlike TCP, it is an unreliable and connectionless protocol. In this article, we will discuss the diffe
9 min read
Types of Transmission Media
Transmission media refer to the physical pathways through which data is transmitted from one device to another within a network. These pathways can be wired or wireless. The choice of medium depends on factors like distance, speed, and interference. In this article, we will discuss the transmission media. What is Transmission Media? A transmission
8 min read
TCP/IP Model
The TCP/IP model is a fundamental framework for computer networking. It stands for Transmission Control Protocol/Internet Protocol, which are the core protocols of the Internet. This model defines how data is transmitted over networks, ensuring reliable communication between devices. It consists of four layers: the Link Layer, the Internet Layer, t
13 min read
What is OSI Model? - Layers of OSI Model
OSI stands for Open Systems Interconnection , where open stands to say non-proprietary. It is a 7-layer architecture with each layer having specific functionality to perform. All these 7 layers work collaboratively to transmit the data from one person to another across the globe. The OSI reference model was developed by ISO - 'International Organiz
15+ min read
Basics of Computer Networking
Computer networking is a cornerstone of modern technology, enabling the interconnected systems that power the Internet, business communications, and everyday digital interactions. Understanding the fundamentals of computer networking is essential for anyone involved in technology, from enthusiasts to professionals. This article will explore the bas
12 min read
RSA Algorithm in Cryptography
RSA algorithm is an asymmetric cryptography algorithm. Asymmetric means that it works on two different keys i.e. Public Key and Private Key. As the name describes the Public Key is given to everyone and the Private key is kept private. An example of asymmetric cryptography: A client (for example browser) sends its public key to the server and reque
15+ min read
Types of Network Topology
Network topology refers to the arrangement of different elements like nodes, links, or devices in a computer network. It defines how these components are connected and interact with each other. Understanding various types of network topologies helps in designing efficient and robust networks. Common types include bus, star, ring, mesh, and tree top
12 min read
Network Devices (Hub, Repeater, Bridge, Switch, Router, Gateways and Brouter)
Network Devices: Network devices, also known as networking hardware, are physical devices that allow hardware on a computer network to communicate and interact with one another. For example Repeater, Hub, Bridge, Switch, Routers, Gateway, Brouter, and NIC, etc. 1. Repeater - A repeater operates at the physical layer. Its job is to amplifies (i.e.,
6 min read