TechKnowSurge
CompTIA Tech+ 6.1 CompTIA Tech+ 6.6 CompTIA Server+ 3.1
VideoComputeFree

Storage Integrity

Data integrity ensures stored and transmitted information remains accurate, complete, and unchanged. This content covers key integrity-checking methods including data mirroring, parity bits, and cryptographic hashing.

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

About this video

Data integrity refers to the guarantee that data remains accurate, complete, consistent, and valid throughout its lifecycle—whether at rest or in transit. Storage media and transmission channels are inherently imperfect, meaning data can become corrupted without any deliberate interference. When that happens undetected, the consequences range from inaccessible files to dangerously inaccurate records, making integrity verification a core requirement in IT and cybersecurity practice. Several methods exist for detecting and addressing integrity failures. The most straightforward approach is maintaining two copies of the same data in separate locations and comparing them periodically—if the copies match, integrity is confirmed; if they diverge, a problem has occurred. Because this approach doubles storage requirements, parity bits offer a more efficient alternative. A parity bit is a single extra bit appended to a block of data, calculated to make the total count of one-bits either even or odd. If a bit flips due to corruption, the parity check fails, signaling that the data is no longer reliable. Hashing provides a more robust and widely applied integrity mechanism. A hashing algorithm processes any input and produces a fixed-length output—commonly called a hash or digest—that functions as a unique fingerprint of that data. Even a single-bit change in the original input yields a completely different hash value. To verify integrity, the hash of a dataset is recorded at a known-good state and then recalculated later for comparison; matching hashes confirm the data is unchanged, while a mismatch indicates corruption or tampering. This principle underpins critical technologies including digital signatures, secure file distribution, and the verification mechanisms at the heart of blockchain and cryptocurrency systems.

What you'll learn

What's covered

Data Integrity

Aligned to

CompTIA Tech+
6.1 Summarize confidentiality, integrity, and availability concerns.
6.6 Explain common uses of encryption.
CompTIA Server+
3.1 Summarize data security concepts.

Key terms

Data Integrity
The assurance that data has not been altered or corrupted during storage or transmission.
Integrity
The assurance that data has not been tampered with and remains accurate and complete.
Hash Function
A mathematical algorithm that converts input data of any size into a fixed-size output value used to verify data integrity.
Parity Bit
An extra bit added to a block of data that makes the total number of ones either even or odd, used to detect single-bit errors in data.
Hashing Algorithm
A process that transforms input data into a unique fixed-size fingerprint, enabling detection of any change to the original data.

Topics

Data Integrity Parity Bits Cryptographic Hashing Data Mirroring Storage Systems Cybersecurity

Transcript

These 3 and 1/2 inch floppies store little magnetic signals on them that can actually become corrupt. That is, if you didn't treat these right, then it could cause problems. I remember many times I would just shove them in my book bag back in school, and then they would become corrupt and then I couldn't use or access the data that's on them.

This is problematic. Can you imagine if we had data on our drives and it just started flipping and changing? Well, that actually does happen, and we need some sort of way to check to see if something has become corrupt, if we're getting the wrong data, if it's changed at all. So we call that integrity.

Data Integrity

Can you imagine if data just started changing on you? The fact is that storage, and some storage is worse than others, is not perfect. Same thing with transmitting data: it's not perfect. Can you imagine, let's say your bank balance just starts changing numbers? That's obviously problematic. And so we want a certain amount of integrity, making sure that the data is accurate, complete, consistent and valid.

There's a lot of different ways that we can maintain integrity. We're just going to cover a few examples in here, and really these examples boil down to either identifying when there is a problem, when there is a lack of integrity, or there's some technologies that can actually correct when there is some sort of corruption of the data.

Making a Copy

One method of checking integrity is just make a copy of the data. If we make a copy of a file that resides in two different places, then we just check the two copies, and if they match we have integrity. If they don't, then there's a problem here. Now, one problem with this is that we're storing twice as much information than we need to.

Parity Bits

One way that we can reduce the amount of information that we store but still have an integrity check is by using something called a parity bit. A parity bit just uses an extra bit for a block of data.

So for instance, right here, let's say we have one byte, eight bits of information, and what we're going to do is either choose a zero or one to make the addition of all this come out to an even or odd number of ones. In this scenario right here we're going to go with even, which is a little more common, so we're going to say that the answer must be even.

Well, what does that mean? We have 1, 2, 3, 4, five bits over here, five ones, which is an odd number, and so we need to either add a zero or one to make it an even number. In this case right here we have to add a one to make it six. Six is even. So now what we've done is a little check to make sure that this is accurate.

If any one of these were to flip, and let's say this number ends up being a one, something happens and the integrity is compromised and it flips to be a one, now we have six over here plus 1, which is seven, which is an odd number, and now we know something is wrong with our data.

Hashing

A hash creates a fingerprint of data that allows us to check to make sure that that data has not changed. Essentially what happens is we have a hashing algorithm. This is a process that data goes through to create a unique fingerprint. That unique fingerprint looks like ones and zeros, or in this case right here some hexadecimal numbers. It doesn't really matter what this fingerprint looks like on here, but the point is whatever data we put into the hashing algorithm creates a very unique outcome, a very unique fingerprint there. And if we were to change just a little bit of data, just maybe even a bit of data, we would get an entirely different fingerprint on the other side.

The way we use hashing algorithms to do an integrity check is we grab a fingerprint of a set of data. Now, what we can go do, if we want to ever check this data, is that we can put it back into the hashing algorithm to get the fingerprint and compare it against the fingerprint we already have. By doing this, we can verify that the data is correct. Come up with a different fingerprint and we know that the data is incorrect. This is actually how blockchain and cryptocurrency, it's a key part on how those work.

Corrective Action

So what we covered really is to identify when there are integrity issues, and then we need to take some sort of corrective action. There's ways that we can take corrective action depending on what kind of data ition there is, how it's being stored, how it's being transmitted, however the case may be.

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 →