Cryptography Introduction (original) (raw)

Last Updated : 9 Jan, 2026

Cryptography is the technique of securing information by converting it into an unreadable form so that only authorized users can access and understand it.

Core Principles of Cryptography

Modern cryptography is built on four fundamental principles:

1. Data Confidentiality

Confidentiality ensures that information is accessible only to authorized individuals or systems. It is usually enforced through encryption techniques and confidentiality agreements.

2. Data Integrity

Data integrity ensures that information remains accurate, complete, and unchanged throughout its lifecycle. Any unauthorized modification of data can be detected.

3. Authentication

Authentication verifies the identity of a user or system and confirms that the data being claimed actually belongs to the sender.

4. Non-Repudiation

Non-repudiation guarantees that a sender cannot deny sending a message or signing a document. It provides proof of origin and delivery of data.

**How Cryptography Works

Consider two parties: Alice (Sender) and Bob (Receiver).
Alice wants to send a secure message m to Bob.

**Process Overview

Representation

Encryption: C = E(m, k)
Decryption: m = D(C, k)

Where:

Example: Caesar Cipher (Shift Cipher)

The Caesar Cipher is one of the simplest encryption techniques. Each letter in the plaintext is shifted by a fixed number of positions in the alphabet.

**Example (Shift = 3):

Even if an adversary knows the encryption method, the message cannot be decrypted without knowing the key (shift value).

Types of Cryptography

Cryptography can be broadly classified into the following types:

1. Symmetric-Key Cryptography

2. Asymmetric-Key Cryptography

3. Hash Functions

Applications of Cryptography

Cryptography plays a vital role in modern digital systems:

**Challenges of Cryptography

Despite its strengths, cryptography faces several challenges: