Home » Computer Network » Define cryptography with the help of block diagrams of symmetric and asymmetric key cryptography.

Define cryptography with the help of block diagrams of symmetric and asymmetric key cryptography.

Last updated:

Support this post with a reaction:

5,660 views

Cryptography is an important technique used to protect data and communication in computer networks. It converts readable information into a secret coded form so that unauthorized users cannot access it. This process helps maintain privacy, security, and confidentiality of digital information. Therefore, cryptography plays a major role in modern communication systems and internet security.

In addition, cryptography is widely used in online banking, email security, passwords, digital signatures, and e-commerce applications. It ensures that only authorized users can read or modify sensitive information. Different cryptographic methods are used based on security requirements and communication needs. Among them, symmetric key cryptography and asymmetric key cryptography are the two main types used in secure communication systems.

What is Cryptography?

Cryptography is the process of securing information by converting readable data into an unreadable coded form called ciphertext. It protects sensitive data from unauthorized access during storage and transmission. Only authorized users with the correct key can convert the coded data back into its original form. Therefore, cryptography helps maintain data security, privacy, integrity, and confidentiality in computer networks and digital communication systems.

  • Converts plaintext into ciphertext using algorithms and keys
  • Ensures confidentiality, integrity, authentication, and non-repudiation
  • Used in secure communication, digital signatures, passwords, and online transactions
Plaintext encrypted with a key into ciphertext

Figure: Cryptography

Features of Cryptography

1. Data Confidentiality

Cryptography keeps information private by converting readable data into secret coded form. Only authorized users with the correct key can access the original data. Therefore, sensitive information remains protected from unauthorized access.

2. Data Integrity

Cryptography ensures that data is not modified or damaged during transmission. It helps detect unauthorized changes in the information. Thus, users receive accurate and trustworthy data.

3. Authentication

This feature verifies the identity of users, devices, or systems during communication. It ensures that data is exchanged between trusted parties only. Therefore, fake or unauthorized users can be prevented.

4. Non-Repudiation

Cryptography prevents users from denying their actions after sending a message or transaction. Digital signatures provide proof of communication and data transfer. Hence, accountability and trust increase in digital systems.

5. Secure Communication

Cryptography protects data while it travels across networks and the internet. It reduces the risk of hacking, data theft, and cyber attacks. Therefore, communication becomes safer and more reliable.

6. Access Control

This feature allows only authorized users to access protected information. Encryption keys and passwords help restrict unauthorized access. Thus, system security improves significantly.

7. Privacy Protection

Cryptography safeguards personal and confidential information from exposure. It protects banking details, passwords, and private messages. Therefore, users can maintain privacy in digital communication.

8. Digital Signature Support

Cryptography supports digital signatures for verifying message authenticity. It confirms that the message comes from the original sender. Hence, secure and trustworthy communication becomes possible.

Working of Cryptography

1. Plaintext Creation

The original readable information is called plaintext. This data may include messages, passwords, banking details, or files. Therefore, plaintext is the actual information that needs protection.

2. Encryption Process

During encryption, cryptographic algorithms convert plaintext into an unreadable coded form called ciphertext. A key is used to perform this conversion securely. Thus, unauthorized users cannot understand the data.

3. Transmission of Ciphertext

After encryption, the ciphertext is transmitted through the network or stored securely. Even if attackers access the data, they cannot read it without the correct key. Therefore, data remains protected during communication.

4. Decryption Process

At the receiver’s side, the ciphertext is converted back into readable form using a decryption key. This process restores the original information for authorized users. Hence, the receiver can access the actual data correctly.

5. Use of Cryptographic Keys

Cryptography uses keys to encrypt and decrypt information securely. These keys control access to protected data. Therefore, only authorized users with the correct key can read the information.

6. Authentication Verification

Cryptography also verifies the identity of users and systems during communication. It ensures that data comes from a trusted source. Thus, fake users and unauthorized access can be prevented.

7. Integrity Checking

The system checks whether the data was modified during transmission. If any changes are detected, the receiver is informed immediately. Therefore, data integrity and accuracy are maintained.

8. Secure Data Delivery

Finally, cryptography ensures that sensitive information reaches the correct user safely and securely. It protects communication from hacking, theft, and cyber attacks. Hence, digital communication becomes reliable and trustworthy.

Encryption before transmission and decryption after it

Figure: Working Of Cryptography

"Hello" is a plaintext and convert into ciphertext "jknnq" with the help of cryptographic key and then decrypt into "Hello".

Types of Cryptography

1. Symmetric Key Cryptography

Symmetric key cryptography uses the same key for both encryption and decryption of data. The sender and receiver share a common secret key for secure communication. This method is faster and suitable for large data transmission. Therefore, it is widely used in file encryption and secure communication systems.

Symmetric encryption with one shared secret key

Figure: Symmetric Key Cryptography

Examples of Symmetric Key Algorithms

1. DES (Data Encryption Standard)

DES is one of the earliest symmetric key encryption algorithms developed for securing digital data. It uses a 56-bit secret key to encrypt and decrypt information. This algorithm converts plaintext into ciphertext through multiple encryption rounds. Therefore, it was widely used in banking systems and secure communication in earlier computer networks.

DES provides fast encryption and was considered highly secure during its initial years. However, with the growth of modern computing power, attackers can now break DES more easily using brute-force attacks. As a result, DES is no longer considered fully secure for modern applications. Still, it played an important role in the development of modern cryptography systems.

DES, a symmetric cipher with a 56-bit key

Figure: DES (Data Encryption Standard)

For example,

A DES example with the same key used to encrypt and decrypt

Figure: DES tool example

2. AES (Advanced Encryption Standard)

AES is a modern symmetric key encryption algorithm widely used for secure communication and data protection. It supports key sizes of 128-bit, 192-bit, and 256-bit, which provide strong security against cyber attacks. AES encrypts data through several transformation rounds to produce highly secure ciphertext. Therefore, it is one of the most trusted encryption standards in the world.

AES is faster, stronger, and more efficient than DES. It is widely used in banking systems, wireless networks, cloud security, and government applications. In addition, AES requires less processing power while providing high security. Thus, it has become the standard encryption method for modern digital communication and data storage.

AES, a symmetric cipher with a 128-bit, 192-bit, or 256-bit key

Figure: AES (Advanced Encryption Standard)

For example,

An AES example using the same key both ways

Figure: AES tool example

2. Asymmetric Key Cryptography

Asymmetric key cryptography uses two different keys, known as a public key and a private key. The public key encrypts the data, while the private key decrypts it. This method avoids sharing the private key and supports digital signatures; its security, like symmetric cryptography, depends on the algorithm, key size, implementation, and key management. Thus, it is commonly used in online banking and secure internet communication.

Asymmetric encryption with a public key and a private key

Figure: Asymmetric Cryptography

Examples of Asymmetric-Key Algorithms

1. RSA (Rivest–Shamir–Adleman)

RSA is one of the most widely used asymmetric key cryptography algorithms. It uses two different keys, namely a public key and a private key, for secure communication. The public key is used to encrypt data, while the private key is used to decrypt it. Therefore, RSA provides strong security for digital communication and online transactions.

RSA was developed by Ron Rivest, Adi Shamir, and Leonard Adleman, and the algorithm is named after their surnames. It is based on mathematical calculations involving large prime numbers, which makes it difficult for attackers to break the encryption. Thus, RSA is considered highly secure for transmitting sensitive information over networks.

RSA using a public key to encrypt and a private key to decrypt

Figure: RSA (Rivest–Shamir–Adleman)

For example,

Step 1: Choose Prime Numbers

Choose two prime numbers:p=3,  q=11p = 3,\; q = 11Now calculate the value of nnn:n=p×qn = p \times q

The value of nnn is used in both the public and private keys.

Step 2: Calculate Euler’s Totient Function

Now compute Euler’s function:ϕ(n)=(p−1)(q−1)\phi(n) = (p-1)(q-1)

This value helps in generating encryption and decryption keys.

Step 3: Choose Public Key Value (e)

Choose a number eee such that:1<e<ϕ(n)1 < e < \phi(n)Let:e=7e = 7So, the public key becomes:(e,n)=(7,33)(e,n) = (7,33)

Step 4: Calculate Private Key Value (d)

Find a value of ddd such that:(d×e)mod  ϕ(n)=1(d \times e) \mod \phi(n) = 1

Choose:d=3d = 3Verification:(3×7)mod  20=21mod  20=1(3 \times 7) \mod 20 = 21 \mod 20 = 1Thus, the private key becomes:(d,n)=(3,33)(d,n) = (3,33)

Encryption Process

Suppose the message is:M=4M = 4The message must be less than nnn.

Encryption formula:C=Memod  nC = M^e \mod nTherefore:Encrypted Message=16\text{Encrypted Message} = 16

Decryption Process

Now decrypt the ciphertext using the private key:M=Cdmod  nM = C^d \mod nUsing modular exponentiation:163mod  33=4096mod  33=416^3 \mod 33 = 4096 \mod 33 = 4Therefore:Decrypted Message=4\text{Decrypted Message} = 4

The original message is successfully recovered after decryption.

2. ECC (Elliptic Curve Cryptography)

Elliptic Curve Cryptography (ECC) is a modern asymmetric encryption technique that provides strong security using smaller key sizes. It is faster and more efficient than many traditional algorithms like RSA. Therefore, ECC is highly suitable for smartphones, IoT devices, smart cards, and blockchain systems.

ECC uses mathematical points on elliptic curves to perform encryption and decryption operations. Because of smaller key sizes, it consumes less memory, power, and bandwidth. Thus, ECC provides secure and lightweight communication in modern digital systems.

An elliptic curve used for asymmetric cryptography

Figure: Elliptic Curve

Elliptic Curve Equation

ECC commonly uses the standard elliptic curve equation:y2=x3+ax+bmod  py^2 = x^3 + ax + b \mod p

Choose the following values:

  • Prime Field:

p=17p = 17

  • Curve Parameters:

a=2,  b=2a = 2,\; b = 2

Therefore, the elliptic curve equation becomes:y2=x3+2x+2mod  17y^2 = x^3 + 2x + 2 \mod 17

This equation is used to generate points on the elliptic curve for secure cryptographic operations.

Conclusion

Cryptography is an essential technique used to protect sensitive information and secure communication in computer networks. It converts readable data into coded form so that unauthorized users cannot access it. Therefore, cryptography helps maintain confidentiality, integrity, authentication, and privacy in modern digital systems. Today, it is widely used in banking, e-commerce, email security, and online communication.

Symmetric and asymmetric key cryptography are the two major types of cryptographic methods used for securing data. Symmetric key cryptography uses a single key for both encryption and decryption, making it faster and suitable for large data transmission. On the other hand, asymmetric key cryptography uses two different keys, which provide higher security and support secure key exchange and digital signatures. Thus, both methods play important roles based on different security requirements.

How the two types differ is in symmetric vs asymmetric cryptography.