TechKnowSurge
CompTIA Security+ 1.4 ISC2 CISSP 3.6 EC-Council CEH 9.1 Cisco CCST Cybersecurity 1.4 CompTIA SecurityX 2.3
VideoSecurityFree

Symmetric Encryption

Symmetric encryption relies on a shared key for both encryption and decryption, with block and stream ciphers representing the two primary approaches to processing data. This content covers the mechanics of each cipher type, key historical standards like DES and Triple DES, and the architecture of AES, the current encryption standard.

Complete this video to capture a CTF flag worth 1 point.

About this video

Symmetric encryption is defined by a single shared key used for both encrypting and decrypting data, making key management critical to its security. The two fundamental cipher types within symmetric encryption are block ciphers and stream ciphers, distinguished by the amount of data they process in a single operation. Block ciphers work on fixed chunks of data — padding incomplete blocks as needed — and are the more common of the two, capable of supporting integrity verification and authentication in addition to confidentiality. Stream ciphers process data one bit or byte at a time as it arrives, consuming less memory and making them well suited for real-time or continuous data transmission. DES, the Data Encryption Standard, was adopted in 1976 with a 56-bit key and became the dominant encryption algorithm of its era. After it was successfully cracked in 1997, Triple DES emerged as a transitional solution, running the DES algorithm three times in sequence using either two or three distinct keys to produce an effective key length of 112 or 168 bits. Although Triple DES addressed the immediate vulnerability, it is no longer considered secure by modern standards. AES, the Advanced Encryption Standard adopted in 2001, replaced it as the global benchmark for symmetric encryption after a competitive evaluation process that reviewed 15 candidate algorithms and ultimately selected Rijndael. AES operates as a block cipher with a fixed block size of 128 bits and supports key lengths of 128, 192, or 256 bits. Its security comes in part from a series of transformation rounds in which data is repeatedly processed and scrambled — 10 rounds for a 128-bit key, 12 for 192-bit, and 14 for 256-bit. Each successive round increases the complexity of the resulting ciphertext, making AES computationally resistant to attack and the standard choice for protecting data across virtually every modern system and protocol.

What you'll learn

What's covered

Symmetric Encryption

Aligned to

CompTIA Security+
1.4 Explain the importance of using appropriate cryptographic solutions.
ISC2 CISSP
3.6 Select and determine cryptographic solutions.
EC-Council CEH
9.1 Cryptography.
Cisco CCST Cybersecurity
1.4 Explain encryption methods and applications.
CompTIA SecurityX
2.3 Given a scenario, implement appropriate cryptographic protocols and algorithms.

Key terms

Symmetric Encryption
An encryption method that uses the same key for both encryption and decryption.
Cipher
An algorithm used to encrypt and decrypt data.
Block Cipher
A symmetric cipher that encrypts data in fixed-size chunks called blocks, with the block size determined by the cipher and its settings.
Stream Cipher
A symmetric cipher that encrypts data one bit or byte at a time as it is transmitted, using less memory and offering greater efficiency than block ciphers.
Digital Encryption Standard
DES
Digital Encryption Standard is a symmetric-key block cipher with a 56-bit key that was once the federal standard for encryption but is now considered cryptographically broken due to its small key size.
Triple Data Encryption Standard
3DES
Triple DES is a symmetric block cipher that applies the DES algorithm three times to each data block using two or three keys, providing stronger encryption than single DES but now considered deprecated due to slow speed and small block size.
Advanced Encryption Standard
AES
A symmetric encryption algorithm widely used to secure data, supporting key sizes of 128, 192, and 256 bits.
Transformation Round
A single iteration of the AES encryption process that scrambles and mixes data; AES performs 10, 12, or 14 rounds depending on key size.

Topics

Cryptography Symmetric Encryption Block Ciphers Stream Ciphers Aes Des

Transcript

When it comes to encryption, symmetric key ciphers do the bulk of the work.

What we are going to be covering is symmetric key stream ciphers and block ciphers. When we say symmetric, remember what we're saying is that the keys to encrypt the message are the same as the keys to decrypt that message.

Block versus stream ciphers

So what is the difference between block versus stream ciphers? It's just how many bits it's going to process at any given time, and I'm going to show you in the bits value, because that's what's actually going to be happening on your computer.

When we're talking about blocks, it is just how much are we doing in one go, how much in that chunk are we doing. You can see that it's processed whatever chunk up here and some of the bits are missing; this is what it's working on now, and the next set would be down here, and it would do it in even amounts. Now how many bits it processes, how big these blocks are, is just going to depend on which cipher you're using and what the settings are for that cipher. So that is the block cipher.

Versus a stream cipher, the idea behind it is as something's streaming in it can cipher it there on the spot, so usually we're talking about a bit size or a byte size.

I like to think of block ciphers as being used for things like files and things that are bigger. However, really it just is used on a lot of different stuff, and it's the more common between block ciphers and stream ciphers.

But how big is a block? Well, that's going to be determined by the cipher and its settings. Some ciphers have a set amount of block bits that it uses, such as DES, where a block size is 64 bits, and that actually started a precedent, so a lot of encryption ciphers actually use 64 bits for the block size. But there are some ciphers where you can actually set the block size and what the block size is going to be.

Then you have a stream cipher, and I like to think about this as if you're streaming some sort of data, like maybe a movie or something, and as it's coming in or being sent out it's being encrypted and decrypted at that point in time. Now in reality you could actually use this for a lot of different purposes, but a good use case for it is as things are going by, that's when it's encrypting, and that's why it's encrypting at a much smaller level, at the bit level or maybe at the byte level. Bit is the more typical one out of the two, and it encrypts a bit at a time.

A few other differences between block and stream ciphers is that a stream cipher is called a digit; we do a digit at a time, and that very commonly is one bit at a time, or maybe it's one byte at a time. But because this is such a smaller chunk of data, what it actually does is use less memory. There's less to process at a time, so it uses less memory, and that makes it more efficient, versus block can be easier to implement.

One thing though about block is that if you have 32 bits and it's like DES that needs 64 bits, it does things in blocks of 64 bits, then it's going to need to add some padding, it's going to need to fill in those blanks before it encrypts that data.

And this also can be used for streams. Blocks can actually be used for streams. 64 bits is actually not a lot of data, so a block cipher could still be used for streaming. Block ciphers can also provide other additional features such as integrity or authentication.

Examples

So what are some examples of these? As I mentioned, block ciphers are more common, and so there's a lot more of them, and stream ciphers not as much.

There's DES, we've talked a lot about DES. Triple DES is another example, we'll talk about that here in a second. RC5 — notice that with RC5 and RC4, one's a stream cipher where the other one's a block cipher. Rijndael, and we'll talk more about Rijndael and AES here in a little bit. Blowfish and Twofish, you'll also hear those terms out there. What we're going to mainly focus on is the ones that are starred here, so AES and DES are the ones that we're mainly going to be focusing on.

DES and Triple DES

Let's take a little deeper dive into DES, which is that 56 bits effectively. It was adopted in 1976 and it was cracked in 1997. DES stands for data encryption standard, because it was the standard, it was created to be the standard, and it was the most common one used out there. But when it was cracked we needed an alternative, and so Triple DES came out as an alternative.

What Triple DES does is it uses the DES algorithm, the DES cipher, to be able to encrypt things in a secure manner since DES was cracked. It uses three keys, so you'll see here key 1, key 2 and key 3. What it'll do is, you will have your plain text and you'll enter it in, and then it uses that DES algorithm, that DES cipher, to create your encrypted text using key 1. Then what happens is that gets put into a second iteration of this, but this time it actually decrypts it, and it decrypts it with key 2. When you decrypt something with a different key it just mixes things up more and makes it that much more secure. So now we've got something that's really encrypted, and then we put it through a third time. We use the DES cipher again, but we use key 3, and now what comes out is something that should be more secure.

And it was more secure for a while, until we've decided now that DES and Triple DES is really not a secure method of encrypting stuff now. But that's how we dealt with the issue at the time.

So how many bits? What they would do is they take key 1, key 2 and key 3, all those bits, and they put them together to create one key. If DES is 56 bits, because each one of these is going to be 56, that's what DES uses, so 56 + 56 + 56 equals 168 bits. So Triple DES used a 168 bits. But there was one other variation, and that is you can actually reuse key 1 for key 3, to make it a 112 bit key instead, so that would be just reusing that last key here. So there's two selections there: you could use Triple DES at 112 bit key, or a Triple DES at 168 bit key.

AES

Where DES is data encryption standard, AES is advanced encryption standard, so it's the next iteration, and it was adopted in 2001.

When advanced encryption standard came out, because DES was cracked and we needed a new standard, I like to think of it as a bit of a container. That is, we didn't have this container filled; there wasn't an algorithm that we specifically had in mind, just a need that we had in mind. And so we put it out there that we have this need, we need to create a standard, who wants to submit their proposals. There were 15 entries that entered in and said, these are our proposals. From there there was discussion and people talked about it, there was voting, and it narrowed down to five entries, and from those five entries there was further discussion and narrowing it down, and then there was one winner. Rijndael is the one that actually won through all of these.

So when we say AES it's actually the Rijndael cipher that we're using, but we express it as AES because it's, once again, that container, that standard that we put out there, and now that has become the standard. AES is the new standard.

AES is a block cipher. It does things in block sizes of 128 bits. The key sizes are 128, 192 and 256 for the bit sizes of the keys, and depending on which one it is it goes through a number of multiple transformation rounds. So the 128 goes through 10 rounds, 192 goes through 12 rounds, and 256 goes through 14 rounds.

And that raises the question, what is a transformation round? You would have plain text, and then you would put it into the algorithm and it would jumble it up and encrypt it, where it comes out as a cipher text. So this is cipher text one, and then you would put it into it again and it would go through round two, and then it would come out with the cipher text after that. And then you put it in there again and it comes into round three, and so on and so forth. So 10 rounds for 128, 12 rounds at 192, and 14 rounds at 256.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →