Knowunity AI

Open the App

Subjects

Computer Science / ProgrammingComputer Science / Programming52 views·Updated May 31, 2026·39 pages

Understanding Practical Cryptography in IT Security

S
Shnayder @shnayder

Cryptography transforms data into secure, unreadable code to protect sensitive... Show more

1
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Introduction to IT Security: Practical Cryptography

Cryptography is the science of securing data by converting it into scrambled code that can be transmitted across networks. While originally known as "the art of secret writing," modern cryptography has evolved into a sophisticated science based on mathematical principles like number theory and algebra.

The primary purpose of cryptography is to protect data when transmitting it in environments where opponents might intercept it. This protection extends to sensitive information like email messages, credit card details, and confidential corporate data.

Cryptography serves four key objectives: confidentiality (keeping information private), integrity (ensuring information hasn't been altered), authentication (verifying the source of information), and non-repudiation (preventing denial of sending information).

Remember this! Ciphers are the algorithms used to encrypt or decrypt data, essentially the "recipes" that make cryptography work.

2
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Cryptography Terminology

When data is encrypted, it follows a specific path between sender and recipient. The original message, called plaintext, gets transformed using an encryption algorithm and a key into ciphertext - the scrambled, unrecognizable form of the message that protects it from unauthorized access.

The process of transforming plaintext into ciphertext is called encryption (also known as encoding or enciphering). The reverse process, transforming ciphertext back into plaintext, is called decryption (decoding or deciphering).

A key is the crucial value that controls both encryption and decryption processes. The entire system of encryption and decryption is called a cryptosystem. Meanwhile, cryptanalysis is the science of breaking codes without authorization - essentially finding weaknesses in encryption keys to decrypt messages without knowing the key.

Cryptology encompasses both cryptography (creating secure codes) and cryptanalysis (breaking codes).

Pro tip: Think of encryption like a special lockbox - the key determines who can lock and unlock it, while the algorithm is just the mechanism of the lock itself.

3
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Conventional Encryption Principles

A simplified model of conventional encryption involves five key ingredients that work together to secure information. First, there's the plaintext - the original, readable message. Second, an encryption algorithm performs various transformations on the plaintext.

Third, a secret key controls the encryption and decryption processes - this is the crucial piece of information that must remain secure. Fourth, the ciphertext is the scrambled output that results from encrypting the plaintext. Finally, the decryption algorithm essentially runs the encryption process in reverse to recover the original message.

The security of this system depends on keeping the key secret, not the algorithm. Even if someone knows exactly how the encryption algorithm works, they shouldn't be able to decrypt the message without the proper key.

Important note: For a given message, two different keys will produce two completely different ciphertexts, which is why key management is so critical to security.

4
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Cryptographic Systems Classification

Cryptographic systems can be categorized along three independent dimensions, each reflecting a different aspect of how encryption works. Understanding these classifications helps you appreciate the variety of encryption approaches available.

The first dimension involves the type of operations used to transform plaintext into ciphertext. There are two main types: substitution ciphers whichreplaceletters/symbolswithotherletters/symbolswhich replace letters/symbols with other letters/symbols and transposition ciphers whichrearrangethepositionsofletters/symbolswhich rearrange the positions of letters/symbols.

The second dimension concerns the number of keys used. Systems can use symmetric encryption (one shared secret key), asymmetric encryption (a pair of public and private keys), or hash functions onewayencryptionwithnokeysone-way encryption with no keys.

The third dimension relates to how the plaintext is processed. Some systems use block ciphers encryptingfixedsizeblocksofdataencrypting fixed-size blocks of data while others use stream ciphers (encrypting continuous data streams one bit or byte at a time).

Think about it: Each dimension represents a design choice that affects security, speed, and complexity - like choosing between different types of locks for different security needs.

5
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Substitution Techniques

Substitution ciphers replace elements of plaintext with different elements to create ciphertext. A simple example is the monoalphabetic substitution cipher, which maps each letter of the plaintext alphabet to a unique letter in the ciphertext alphabet.

The classic example is the Caesar cipher, where each letter in the plaintext is shifted a fixed number of positions down the alphabet. With a shift of 3, 'a' becomes 'D', 'b' becomes 'E', and so on. This creates a consistent pattern of substitution throughout the entire message.

For greater security, polyalphabetic ciphers use more than one alphabet for encryption. This means the same letter in a message can be represented by different letters when encoded, making pattern recognition much harder. The Vigenère Cipher is a famous example of this approach.

While substitution ciphers were revolutionary in their time, most simple versions can be broken using frequency analysis - examining how often certain letters appear in the ciphertext and comparing to known language patterns.

Historical context: The Caesar cipher is named after Julius Caesar, who reportedly used it with a shift of 3 to protect military communications over 2,000 years ago!

6
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Transposition Techniques

Unlike substitution ciphers that replace letters, transposition ciphers keep the same letters but change their positions. This creates security by scrambling the arrangement of characters rather than substituting them.

In a basic transposition cipher, the plaintext is written into a grid by rows, then read out by columns in a different order determined by the key. For example, the message "Meet me after party" arranged in a grid and read using the key "421635" produces the ciphertext "TEMEEMEFAPTRYRAT".

Transposition ciphers effectively hide the original message by breaking up language patterns and word structures. However, they preserve letter frequencies of the original text, which can make them vulnerable to frequency analysis when used alone.

Modern encryption often combines substitution and transposition techniques to create more secure systems that overcome the weaknesses of either method used individually.

Try it yourself: Pick a short sentence and try encrypting it using a simple transposition cipher with a numerical key. See how quickly the readable text becomes scrambled!

7
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Symmetric Encryption

Symmetric encryption uses a single shared key for both encryption and decryption processes. This approach is also called conventional encryption because it was the traditional method used for centuries before modern computing.

The main advantage of symmetric encryption is its speed and efficiency. Because it uses just one key and relatively straightforward algorithms, it can process large amounts of data quickly. Common symmetric algorithms include AES (Advanced Encryption Standard) and DES (Data Encryption Standard).

However, symmetric encryption faces a significant challenge: key distribution. Both the sender and recipient must have the same secret key, but how do they securely share it in the first place? If an attacker intercepts the key during transmission, the entire system is compromised.

Another limitation is that symmetric encryption requires many keys for multiple parties. For a network with n parties communicating securely, you need nn1n-1/2 keys. With just 5 people, that's already 10 different keys to manage!

Key insight: While symmetric encryption is fast and secure for data, its biggest vulnerability isn't the encryption itself but the challenge of securely exchanging keys.

8
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Asymmetric Encryption

Asymmetric encryption, also known as public-key cryptography, solves the key distribution problem by using two mathematically related but different keys: a public key that can be shared with anyone, and a private key that remains secret.

When someone wants to send you an encrypted message, they use your public key to encrypt it. Once encrypted, the message can only be decrypted using your private key, which only you possess. This elegant system eliminates the need to securely share secret keys before communication.

Public keys can encrypt messages and verify digital signatures, while private keys decrypt messages and create signatures. This separation of functions makes asymmetric systems particularly useful for establishing secure communications between parties who haven't previously shared secrets.

Common asymmetric algorithms include RSA, DSA, and elliptic curve cryptography. While more complex and computationally intensive than symmetric encryption, asymmetric systems provide crucial capabilities like secure key exchange and digital signatures.

Think of it like this: Your public key is like your address that anyone can use to send you mail, while your private key is like the only key that can open your mailbox.

9
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Hash Functions

Hash functions represent a unique form of cryptography that uses no keys at all. Unlike encryption (which is reversible), hash functions are one-way operations - they convert data of any size into a fixed-size string of characters, but the process cannot be reversed to recover the original data.

When you input data into a hash function, it produces a hash value (sometimes called a message digest or checksum). This hash value serves as a unique "fingerprint" of the original data. Even a tiny change to the input will produce a completely different hash output.

Hash functions have important applications in security:

  • Data integrity: Verifying that data hasn't been altered
  • Password storage: Storing password hashes rather than actual passwords
  • Digital signatures: Combining with asymmetric encryption to efficiently sign documents

Common hash algorithms include SHA-256, SHA-3, and MD5 (though MD5 is now considered insecure for many applications).

Fascinating fact: A good hash function makes it computationally infeasible to find two different inputs that produce the same hash output (called a "collision").

10
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Types of Cryptographic Attacks

Understanding potential attacks helps in creating stronger encryption systems. The most basic is a ciphertext-only attack, where the attacker only knows the encrypted message and tries to determine the key or plaintext. Only weak algorithms fail against this limited approach.

More dangerous is a known-plaintext attack, where the attacker has some matched pairs of plaintext and its corresponding ciphertext. With these samples, they can work to discover the key or decrypt other messages encrypted with the same key.

A chosen-plaintext attack occurs when an attacker can select specific plaintext to be encrypted and observe the resulting ciphertext. This gives them more control in analyzing the encryption patterns.

The most powerful approach is a chosen-ciphertext attack, where the attacker can decrypt chosen ciphertext and study the resulting plaintext. This might happen if they gain temporary access to the decryption system without discovering the key.

Security perspective: Modern encryption algorithms are designed to resist all these attacks, even when the attacker has significant advantages like chosen plaintext or ciphertext.

We thought you’d never ask...

What is the Knowunity AI companion?

Our AI companion is specifically built for the needs of students. Based on the millions of content pieces we have on the platform we can provide truly meaningful and relevant answers to students. But its not only about answers, the companion is even more about guiding students through their daily learning challenges, with personalised study plans, quizzes or content pieces in the chat and 100% personalisation based on the students skills and developments.

Where can I download the Knowunity app?

You can download the app in the Google Play Store and in the Apple App Store.

Is Knowunity really free of charge?

That's right! Enjoy free access to study content, connect with fellow students, and get instant help – all at your fingertips.

Most popular content in Computer Science / Programming

3

Most popular content

9
O
AP US HistoryAP US History

Origins and Dynamics of the Columbian Exchange

Analyze the ecological and economic motivations behind the initial transfer of goods, people, and diseases between the Old and New Worlds.

9th3,1280
I
AP US HistoryAP US History

Introduction to Early Cultural Interactions

Analyze the initial social and religious encounters between Europeans, Africans, and Indigenous peoples in the colonial Americas.

9th2,7730
O
AP World HistoryAP World History

Origins of Ancient River Civilizations

Analyze the environmental factors and technological innovations that led to the rise of early states in Mesopotamia, Egypt, and the Indus Valley.

9th3,1860
M
AP US HistoryAP US History

Motivations for European Exploration

Analyze the economic, religious, and political factors that drove European powers to the Americas during the 15th and 16th centuries.

9th1,7780
F
AP PsychologyAP Psychology

Foundations of Ethical Guidelines in Research

Practice the core principles of the APA ethical code including informed consent, debriefing, and the role of Institutional Review Boards.

9th1,3360
I
AP US HistoryAP US History

Introduction to Native American Societies

Examine the diverse social, political, and economic structures of North American indigenous groups prior to European contact.

9th1,1100
I
AP BiologyAP Biology

Introduction to Biological Elements of Life

Practice identifying the essential elements including carbon, nitrogen, phosphorus, and sulfur that compose biological macromolecules.

9th1,7360
I
AP US HistoryAP US History

Introduction to the Spanish Encomienda System

Explore the fundamental economic and social structures of the Spanish colonial system, focusing on the encomienda and the casta social hierarchy.

9th8890
O
AP World HistoryAP World History

Origins and Continuity of the Byzantine Empire

Analyze the political and cultural transitions from the Roman Empire to the Byzantine Empire, focusing on the reign of Justinian I and his code.

9th1,6320

Can't find what you're looking for? Explore other subjects.

Students love us — and so will you.

4.6/5App Store
4.7/5Google Play

The app is very easy to use and well designed. I have found everything I was looking for so far and have been able to learn a lot from the presentations! I will definitely use the app for a class assignment! And of course it also helps a lot as an inspiration.

Stefan SiOS user

This app is really great. There are so many study notes and help [...]. My problem subject is French, for example, and the app has so many options for help. Thanks to this app, I have improved my French. I would recommend it to anyone.

Samantha KlichAndroid user

Wow, I am really amazed. I just tried the app because I've seen it advertised many times and was absolutely stunned. This app is THE HELP you want for school and above all, it offers so many things, such as workouts and fact sheets, which have been VERY helpful to me personally.

AnnaiOS user

Computer Science / ProgrammingComputer Science / Programming52 views·Updated May 31, 2026·39 pages

Understanding Practical Cryptography in IT Security

S
Shnayder @shnayder

Cryptography transforms data into secure, unreadable code to protect sensitive information from unauthorized access. This fascinating field combines mathematical principles with practical security measures to safeguard everything from personal messages to corporate data.

1
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Introduction to IT Security: Practical Cryptography

Cryptography is the science of securing data by converting it into scrambled code that can be transmitted across networks. While originally known as "the art of secret writing," modern cryptography has evolved into a sophisticated science based on mathematical principles like number theory and algebra.

The primary purpose of cryptography is to protect data when transmitting it in environments where opponents might intercept it. This protection extends to sensitive information like email messages, credit card details, and confidential corporate data.

Cryptography serves four key objectives: confidentiality (keeping information private), integrity (ensuring information hasn't been altered), authentication (verifying the source of information), and non-repudiation (preventing denial of sending information).

Remember this! Ciphers are the algorithms used to encrypt or decrypt data, essentially the "recipes" that make cryptography work.

2
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Cryptography Terminology

When data is encrypted, it follows a specific path between sender and recipient. The original message, called plaintext, gets transformed using an encryption algorithm and a key into ciphertext - the scrambled, unrecognizable form of the message that protects it from unauthorized access.

The process of transforming plaintext into ciphertext is called encryption (also known as encoding or enciphering). The reverse process, transforming ciphertext back into plaintext, is called decryption (decoding or deciphering).

A key is the crucial value that controls both encryption and decryption processes. The entire system of encryption and decryption is called a cryptosystem. Meanwhile, cryptanalysis is the science of breaking codes without authorization - essentially finding weaknesses in encryption keys to decrypt messages without knowing the key.

Cryptology encompasses both cryptography (creating secure codes) and cryptanalysis (breaking codes).

Pro tip: Think of encryption like a special lockbox - the key determines who can lock and unlock it, while the algorithm is just the mechanism of the lock itself.

3
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Conventional Encryption Principles

A simplified model of conventional encryption involves five key ingredients that work together to secure information. First, there's the plaintext - the original, readable message. Second, an encryption algorithm performs various transformations on the plaintext.

Third, a secret key controls the encryption and decryption processes - this is the crucial piece of information that must remain secure. Fourth, the ciphertext is the scrambled output that results from encrypting the plaintext. Finally, the decryption algorithm essentially runs the encryption process in reverse to recover the original message.

The security of this system depends on keeping the key secret, not the algorithm. Even if someone knows exactly how the encryption algorithm works, they shouldn't be able to decrypt the message without the proper key.

Important note: For a given message, two different keys will produce two completely different ciphertexts, which is why key management is so critical to security.

4
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Cryptographic Systems Classification

Cryptographic systems can be categorized along three independent dimensions, each reflecting a different aspect of how encryption works. Understanding these classifications helps you appreciate the variety of encryption approaches available.

The first dimension involves the type of operations used to transform plaintext into ciphertext. There are two main types: substitution ciphers whichreplaceletters/symbolswithotherletters/symbolswhich replace letters/symbols with other letters/symbols and transposition ciphers whichrearrangethepositionsofletters/symbolswhich rearrange the positions of letters/symbols.

The second dimension concerns the number of keys used. Systems can use symmetric encryption (one shared secret key), asymmetric encryption (a pair of public and private keys), or hash functions onewayencryptionwithnokeysone-way encryption with no keys.

The third dimension relates to how the plaintext is processed. Some systems use block ciphers encryptingfixedsizeblocksofdataencrypting fixed-size blocks of data while others use stream ciphers (encrypting continuous data streams one bit or byte at a time).

Think about it: Each dimension represents a design choice that affects security, speed, and complexity - like choosing between different types of locks for different security needs.

5
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Substitution Techniques

Substitution ciphers replace elements of plaintext with different elements to create ciphertext. A simple example is the monoalphabetic substitution cipher, which maps each letter of the plaintext alphabet to a unique letter in the ciphertext alphabet.

The classic example is the Caesar cipher, where each letter in the plaintext is shifted a fixed number of positions down the alphabet. With a shift of 3, 'a' becomes 'D', 'b' becomes 'E', and so on. This creates a consistent pattern of substitution throughout the entire message.

For greater security, polyalphabetic ciphers use more than one alphabet for encryption. This means the same letter in a message can be represented by different letters when encoded, making pattern recognition much harder. The Vigenère Cipher is a famous example of this approach.

While substitution ciphers were revolutionary in their time, most simple versions can be broken using frequency analysis - examining how often certain letters appear in the ciphertext and comparing to known language patterns.

Historical context: The Caesar cipher is named after Julius Caesar, who reportedly used it with a shift of 3 to protect military communications over 2,000 years ago!

6
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Transposition Techniques

Unlike substitution ciphers that replace letters, transposition ciphers keep the same letters but change their positions. This creates security by scrambling the arrangement of characters rather than substituting them.

In a basic transposition cipher, the plaintext is written into a grid by rows, then read out by columns in a different order determined by the key. For example, the message "Meet me after party" arranged in a grid and read using the key "421635" produces the ciphertext "TEMEEMEFAPTRYRAT".

Transposition ciphers effectively hide the original message by breaking up language patterns and word structures. However, they preserve letter frequencies of the original text, which can make them vulnerable to frequency analysis when used alone.

Modern encryption often combines substitution and transposition techniques to create more secure systems that overcome the weaknesses of either method used individually.

Try it yourself: Pick a short sentence and try encrypting it using a simple transposition cipher with a numerical key. See how quickly the readable text becomes scrambled!

7
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Symmetric Encryption

Symmetric encryption uses a single shared key for both encryption and decryption processes. This approach is also called conventional encryption because it was the traditional method used for centuries before modern computing.

The main advantage of symmetric encryption is its speed and efficiency. Because it uses just one key and relatively straightforward algorithms, it can process large amounts of data quickly. Common symmetric algorithms include AES (Advanced Encryption Standard) and DES (Data Encryption Standard).

However, symmetric encryption faces a significant challenge: key distribution. Both the sender and recipient must have the same secret key, but how do they securely share it in the first place? If an attacker intercepts the key during transmission, the entire system is compromised.

Another limitation is that symmetric encryption requires many keys for multiple parties. For a network with n parties communicating securely, you need nn1n-1/2 keys. With just 5 people, that's already 10 different keys to manage!

Key insight: While symmetric encryption is fast and secure for data, its biggest vulnerability isn't the encryption itself but the challenge of securely exchanging keys.

8
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Asymmetric Encryption

Asymmetric encryption, also known as public-key cryptography, solves the key distribution problem by using two mathematically related but different keys: a public key that can be shared with anyone, and a private key that remains secret.

When someone wants to send you an encrypted message, they use your public key to encrypt it. Once encrypted, the message can only be decrypted using your private key, which only you possess. This elegant system eliminates the need to securely share secret keys before communication.

Public keys can encrypt messages and verify digital signatures, while private keys decrypt messages and create signatures. This separation of functions makes asymmetric systems particularly useful for establishing secure communications between parties who haven't previously shared secrets.

Common asymmetric algorithms include RSA, DSA, and elliptic curve cryptography. While more complex and computationally intensive than symmetric encryption, asymmetric systems provide crucial capabilities like secure key exchange and digital signatures.

Think of it like this: Your public key is like your address that anyone can use to send you mail, while your private key is like the only key that can open your mailbox.

9
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Hash Functions

Hash functions represent a unique form of cryptography that uses no keys at all. Unlike encryption (which is reversible), hash functions are one-way operations - they convert data of any size into a fixed-size string of characters, but the process cannot be reversed to recover the original data.

When you input data into a hash function, it produces a hash value (sometimes called a message digest or checksum). This hash value serves as a unique "fingerprint" of the original data. Even a tiny change to the input will produce a completely different hash output.

Hash functions have important applications in security:

  • Data integrity: Verifying that data hasn't been altered
  • Password storage: Storing password hashes rather than actual passwords
  • Digital signatures: Combining with asymmetric encryption to efficiently sign documents

Common hash algorithms include SHA-256, SHA-3, and MD5 (though MD5 is now considered insecure for many applications).

Fascinating fact: A good hash function makes it computationally infeasible to find two different inputs that produce the same hash output (called a "collision").

10
of 10
IA 124:

INTRODUCTION TO IT SECURITY

LECTURE 03
PRACTICAL CRYPTOGRAPHY (a)

1

4/14/2023 # CRYPTOGRAPHY
# CONCEPTS # Cryptography

* Crypto

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Types of Cryptographic Attacks

Understanding potential attacks helps in creating stronger encryption systems. The most basic is a ciphertext-only attack, where the attacker only knows the encrypted message and tries to determine the key or plaintext. Only weak algorithms fail against this limited approach.

More dangerous is a known-plaintext attack, where the attacker has some matched pairs of plaintext and its corresponding ciphertext. With these samples, they can work to discover the key or decrypt other messages encrypted with the same key.

A chosen-plaintext attack occurs when an attacker can select specific plaintext to be encrypted and observe the resulting ciphertext. This gives them more control in analyzing the encryption patterns.

The most powerful approach is a chosen-ciphertext attack, where the attacker can decrypt chosen ciphertext and study the resulting plaintext. This might happen if they gain temporary access to the decryption system without discovering the key.

Security perspective: Modern encryption algorithms are designed to resist all these attacks, even when the attacker has significant advantages like chosen plaintext or ciphertext.

We thought you’d never ask...

What is the Knowunity AI companion?

Our AI companion is specifically built for the needs of students. Based on the millions of content pieces we have on the platform we can provide truly meaningful and relevant answers to students. But its not only about answers, the companion is even more about guiding students through their daily learning challenges, with personalised study plans, quizzes or content pieces in the chat and 100% personalisation based on the students skills and developments.

Where can I download the Knowunity app?

You can download the app in the Google Play Store and in the Apple App Store.

Is Knowunity really free of charge?

That's right! Enjoy free access to study content, connect with fellow students, and get instant help – all at your fingertips.

Most popular content in Computer Science / Programming

3

Most popular content

9
O
AP US HistoryAP US History

Origins and Dynamics of the Columbian Exchange

Analyze the ecological and economic motivations behind the initial transfer of goods, people, and diseases between the Old and New Worlds.

9th3,1280
I
AP US HistoryAP US History

Introduction to Early Cultural Interactions

Analyze the initial social and religious encounters between Europeans, Africans, and Indigenous peoples in the colonial Americas.

9th2,7730
O
AP World HistoryAP World History

Origins of Ancient River Civilizations

Analyze the environmental factors and technological innovations that led to the rise of early states in Mesopotamia, Egypt, and the Indus Valley.

9th3,1860
M
AP US HistoryAP US History

Motivations for European Exploration

Analyze the economic, religious, and political factors that drove European powers to the Americas during the 15th and 16th centuries.

9th1,7780
F
AP PsychologyAP Psychology

Foundations of Ethical Guidelines in Research

Practice the core principles of the APA ethical code including informed consent, debriefing, and the role of Institutional Review Boards.

9th1,3360
I
AP US HistoryAP US History

Introduction to Native American Societies

Examine the diverse social, political, and economic structures of North American indigenous groups prior to European contact.

9th1,1100
I
AP BiologyAP Biology

Introduction to Biological Elements of Life

Practice identifying the essential elements including carbon, nitrogen, phosphorus, and sulfur that compose biological macromolecules.

9th1,7360
I
AP US HistoryAP US History

Introduction to the Spanish Encomienda System

Explore the fundamental economic and social structures of the Spanish colonial system, focusing on the encomienda and the casta social hierarchy.

9th8890
O
AP World HistoryAP World History

Origins and Continuity of the Byzantine Empire

Analyze the political and cultural transitions from the Roman Empire to the Byzantine Empire, focusing on the reign of Justinian I and his code.

9th1,6320

Can't find what you're looking for? Explore other subjects.

Students love us — and so will you.

4.6/5App Store
4.7/5Google Play

The app is very easy to use and well designed. I have found everything I was looking for so far and have been able to learn a lot from the presentations! I will definitely use the app for a class assignment! And of course it also helps a lot as an inspiration.

Stefan SiOS user

This app is really great. There are so many study notes and help [...]. My problem subject is French, for example, and the app has so many options for help. Thanks to this app, I have improved my French. I would recommend it to anyone.

Samantha KlichAndroid user

Wow, I am really amazed. I just tried the app because I've seen it advertised many times and was absolutely stunned. This app is THE HELP you want for school and above all, it offers so many things, such as workouts and fact sheets, which have been VERY helpful to me personally.

AnnaiOS user