Docsity

Scrambling Through Cryptography - Network Security - Lecture Slides, Slides of Cryptography and System Security

Partial preview of the text

Download Scrambling Through Cryptography - Network Security - Lecture Slides and more Slides Cryptography and System Security in PDF only on Docsity!

Chapter 8: Scrambling Through

Cryptography

Objectives

  • Define cryptography
  • Secure with cryptography hashing algorithms
  • Protect with symmetric encryption algorithms
  • Harden with asymmetric encryption algorithms
  • Explain how to use cryptography

Cryptography Terminology (continued)

  • Decryption: reverse process of encryption
  • Algorithm: process of encrypting and decrypting information based on a mathematical procedure
  • Key: value used by an algorithm to encrypt or decrypt a message

Cryptography Terminology (continued)

  • Weak key: mathematical key that creates a detectable pattern or structure
  • Plaintext: original unencrypted information (also known as clear text)
  • Cipher: encryption or decryption algorithm tool used to create encrypted or decrypted text
  • Ciphertext: data that has been encrypted by an encryption algorithm

How Cryptography Protects

  • Intended to protect the confidentiality of information
  • Second function of cryptography is authentication
  • Should ensure the integrity of the information as well
  • Should also be able to enforce nonrepudiation, the inability to deny that actions were performed
  • Can be used for access control

Securing with Cryptography Hashing Algorithms

  • One of the three categories of cryptographic algorithms is known as hashing

Defining Hashing (continued)

Defining Hashing (continued)

  • Hashing is typically used in two ways:
    • To determine whether a password a user enters is correct without transmitting the password itself
    • To determine the integrity of a message or contents of a file
  • Hash algorithms are considered very secure if the hash that is produced has the characteristics listed on pages 276 and 277 of the text

Message Digest (MD)

  • Message digest 2 (MD2) takes plaintext of any length and creates a hash 128 bits long - MD2 divides the message into 128-bit sections - If the message is less than 128 bits, data known as padding is added
  • Message digest 4 (MD4) was developed in 1990 for computers that processed 32 bits at a time - Takes plaintext and creates a hash of 128 bits - The plaintext message itself is padded to a length of 512 bits

Message Digest (MD) (continued)

  • Message digest 5 (MD5) is a revision of MD designed to address its weaknesses - The length of a message is padded to 512 bits - The hash algorithm then uses four variables of 32 bits each in a round-robin fashion to create a value that is compressed to generate the hash

Protecting with Symmetric Encryption Algorithms

  • Most common type of cryptographic algorithm (also called private key cryptography)
  • Use a single key to encrypt and decrypt a message
  • With symmetric encryption, algorithms are designed to decrypt the ciphertext - It is essential that the key be kept confidential: if an attacker secured the key, she could decrypt any messages

Protecting with Symmetric Encryption Algorithms (continued)

  • Can be classified into two distinct categories based on amount of data processed at a time: - Stream cipher (such as a substitution cipher) - Block cipher
  • Substitution ciphers substitute one letter or character for another - Also known as a monoalphabetic substitution cipher - Can be easy to break

Protecting with Symmetric Encryption Algorithms (continued)

  • A homoalphabetic substitution cipher maps a single plaintext character to multiple ciphertext characters
  • A transposition cipher rearranges letters without changing them
  • With most symmetric ciphers, the final step is to combine the cipher stream with the plaintext to create the ciphertext

Protecting with Symmetric

Encryption Algorithms (continued)