Overview: IT infrastructure encompasses various components that facilitate the functioning of an organization across different domains including Finance, HR, etc.
Key components include:
Border Router: Manages traffic between the internal network and external Internet.
Web/Email Server: Hosts web applications and manages email services.
File/Printing Server: Handles file storage and printing requests.
Corporate Application Servers: Run enterprise applications crucial for operations.
Infrastructure Servers: Support essential network services such as DNS (Domain Name System), AD/LDAP (Active Directory/Lightweight Directory Access Protocol), DHCP (Dynamic Host Configuration Protocol), NTP (Network Time Protocol), and Backup solutions.
Remote Users: Access services from offsite locations, requiring secure connectivity and access control.
Cryptography
Definition: Cryptography is the science of encoding and decoding information to secure communications and protect data integrity.
What is Cryptography?
Process of encrypting and decrypting information:
Ciphertext: The result of encryption; a scrambled version of the plaintext.
Plaintext: The original, unencrypted information.
Encryption: The process of converting plaintext into ciphertext.
Decryption: The reverse process, converting ciphertext back into plaintext.
What are Keys?
Definition: A key is a string of bits used to vary the output of a cryptographic algorithm.
Characteristics:
Keys are generally kept secret to maintain security.
The strength of encryption is influenced by both key length and complexity.
What are Algorithms?
Definition: Cryptographic algorithms are mathematical formulas that transform plaintext into ciphertext.
Nature: Algorithms may either be published or kept secret.
Cryptography Terminology
Key Concepts:
Encryption, Decryption: Processes for converting data.
Encode, Decode: Terms related to the transformation of data formats.
Encipher, Decipher: Synonymous with encryption and decryption.
Plaintext, Ciphertext: Terms denoting original and encrypted data.
Encryption Algorithms: Specialized algorithms for encrypting data.
Symmetric Algorithms:
DES (Data Encryption Standard)
3DES (Triple DES)
AES (Advanced Encryption Standard)
Asymmetric Algorithms:
RSA (Rivest-Shamir-Adelman)
Diffie-Hellman
DSS (Digital Signature Standard)
Elliptic Curve Cryptography
Cryptography Challenges
Breakable Encryption:
With enough time and data, a cryptanalyst can uncover the algorithm through methods such as:
Cryptanalysis: The study of analyzing information systems in the presence of a cryptographic security scheme.
Brute-force Attack: Trying every possible key until the correct one is found.
Encryption of Characters: Need to encrypt different types of data (ASCII, binary, object formats).
Basic Encryption Methods:
Substitution: Replaces elements of plaintext with other elements to create confusion.
Transposition: Rearranges elements to create diffusion within the ciphertext.
Applications of Cryptography
Functions:
Confidentiality: Protecting information from unauthorized access.
Integrity: Ensuring the data has not been altered in transit.
Authentication: Validating the source of data.
Anti-replay: Preventing attackers from using valid data transmission later.
Symmetric Encryption
Components:
Plaintext: Input data.
Encryption Algorithm: Algorithm used to encrypt the plaintext.
Secret Key: Shared between sender and recipient to encrypt and decrypt the data.
Ciphertext: The encrypted output.
Process:
Encryption: Y=E[K,X] where K is the secret key and X is the plaintext.
Decryption: X=D[K,Y] where Y is the ciphertext.
Substitution Techniques
Caesar Cipher Example:
A simple substitution cipher that shifts characters by three positions in the alphabet:
Original: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Ciphered: D E F G H I J K L M N O P Q R S T U V W X Y Z A B C
Transpositions Explanation:
Involves rearranging the letters of a message rather than replacing them.
Columnar Transposition Example:
Demonstrates how rearranging can enhance security.
Substitution and Transposition
Role of substitutions: Hides individual letters, making frequency analysis more complex.
Role of transpositions: Distracts adjacent-character analysis making patterns harder to identify.
Building Blocks: Both techniques are foundational for encryption methods and can be combined to form product ciphers.
Good Encryption Algorithm Requirements
Security Needs: Secrecy level should dictate the effort invested in encryption and decryption.
Complexity: The key and algorithm design should not be overly complicated to avoid errors or the risk of forgetting steps.
Error Management: Errors during encryption should not propagate throughout the ciphertext, maintaining data integrity.
Size Restrictions: The size of the ciphertext should not be excessively larger than the plaintext to limit exposure to cryptanalysis.
Shannon's Principles: Discusses complexity and implementation in the context of modern computational capabilities.
Stream and Block Ciphers
Stream Ciphers: Operate on data in a continuous stream; susceptible to errors affecting all subsequent data.
Block Ciphers: Process fixed-size segments, providing better diffusion and security against cryptanalysis.
One-Time Pads
Definition: A stream cipher that guarantees absolute secrecy when used appropriately, requires a perfect key stream.
Synchronization Importance: Essential to maintaining the security of the encrypted information.
Data Encryption Standard (DES)
Established by NBS in the 1970s aimed at a public encryption algorithm:
Criteria included high security, simplicity, accessibility, adaptability, cost-effectiveness, efficiency, and exportability.
DES Algorithm Process:
A combination of substitution and transposition using a 56-bit key, repeated across 16 cycles of operations including substitution, permutation, and key addition.
Triple DES
Definition: An enhancement of DES using three rounds of encryption with different keys.
Effective key length: 112-bits due to the vulnerabilities in simpler implementations.
Security of DES
Various attempts to break DES have been documented:
1997: 3500 machines cracked DES key in four months.
1998: A dedicated machine found a DES key in four days.
1998: DES was cracked in just 56 hours.
1999: Key recovery reduced to 22 hours.
Advanced Encryption Standard (AES)
Background: The AES contest was introduced by NIST in 1997, won by the Rijndael algorithm.
Adoption: Officially adopted by the U.S. government in 2001.
Characteristics: Utilizes a combination of substitution and transposition with key sizes of 128, 192, and 256 bits.
Asymmetric Encryption
Definition: Involves the use of pairs of keys (public and private) for encryption and decryption.
Process: Data is encrypted with the public key and can only be decrypted with the corresponding private key.
Public Key Encryption
Addresses key distribution and management issues associated with symmetric keys.
Notable algorithm: RSA (Rivest-Shamir-Adelman), which is significantly slower than symmetric algorithms.
RSA: How Does It Work?
Steps for generating keys:
Select two large prime numbers (e.g., p=17, q=11).
Compute n=p×q=187.
Calculate (p−1)×(q−1)=160.
Choose e, relatively prime to 160 (e.g., e=7).
Determine d such that d×emod160=1 (e.g., d=23).
Public key: (e,n)=(7,187); Private key: (d,n)=(23,187).
RSA Encryption/Decryption Example
Encryption: Given plaintext 88, calculate:
Ciphertext: C=887mod187=11.
Decryption: Given ciphertext 11, retrieve original message:
Plaintext: P=1123mod187=88.
Elliptic Curve Cryptography
Offers lesser computational requirements with equivalent security to traditional methods.
Still an emerging field and explored in greater detail in advanced courses.
PGP: Pretty Good Privacy
A hybrid cryptosystem that utilizes both conventional and public key techniques.
Notable fact: Breaking a single PGP message would require exponentially more computational resources than available globally.
PGP Encryption/Decryption Process
Overview:
Plaintext is first encrypted with a session key.
The session key itself is encrypted with the recipient's public key.
The entire structure constitutes the encrypted message, which can only be decrypted using the recipient's private key for access.
Applications of Public-Key Encryption
Key exchange for symmetric encryption: Ensuring secure sharing of a symmetric key between parties.
Digital signatures: Enhancing security by creating a digital envelope for message integrity and authenticity.
Hash Functions
Types of Hash Functions:
One-Way Hash: Generates a fixed-size hash from variable input; cannot be reversed.
Secure Hash: Provides robust security properties suitable for authentication and data integrity verification.
Public Key Certificates
Definition: A public key associated with an identity, verified by a Certificate Authority (CA).
Function of CA: To issue certificates that certify the authenticity of public keys.
Encryption is vital for securing the CIA triad (Confidentiality, Integrity, Availability).
It relies on substitution for confusion and transposition for diffusion, categorized into symmetric and asymmetric encryption based on the type of keys used.