TechKnowSurge
NIST 800-53 SC-13 Cisco CCST Cybersecurity 1.4 CompTIA Tech+ 6.6 ISC2 CC 5.1 NIST 800-53 SC-17 NIST NICE K1203 NIST NICE S0657 Cisco CCST Cybersecurity 1.3
VideoSecurityFree

Integrity - Digital Signatures

Digital signatures use hashing and public key cryptography to verify both the integrity and authenticity of messages and documents. Public key infrastructure (PKI) provides the certificate validation that makes the entire process trustworthy.

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

About this video

Digital signatures are a cryptographic mechanism used to verify two critical properties of electronic messages and documents: integrity, meaning the content has not been altered in transit, and authenticity, meaning the message genuinely originates from the claimed sender. These assurances are especially important for legal documents and other high-stakes communications where validation carries formal weight. The process relies on the mathematical relationship between a sender's private key and their corresponding public key, along with a digital certificate that binds the public key to the sender's identity. To create a digital signature, the sender runs the document through a hashing algorithm, producing a fixed-length fingerprint that uniquely represents the document's contents. That hash is then encrypted with the sender's private key, generating a signed hash that travels alongside the document to the recipient. On the receiving end, the recipient applies the same hashing algorithm to the document and decrypts the signed hash using the sender's public key. If the two fingerprints match, the document has not been tampered with and the private key used to sign it corresponds to the validated public key, confirming the sender's identity. Public key infrastructure (PKI) is what makes this chain of trust reliable. A certificate authority (CA) issues and validates the digital certificate containing the sender's public key, providing independent confirmation that the certificate belongs to the expected party rather than an impostor. Without PKI, there would be no trusted third party to verify that a certificate is genuine, leaving authenticity unresolved. Together, hashing, asymmetric encryption, and PKI form the complete framework that gives digital signatures their legal and technical validity.

What you'll learn

What's covered

Digital Signatures

Aligned to

NIST 800-53
SC-13 Cryptographic Protection
SC-17 Public Key Infrastructure Certificates
Cisco CCST Cybersecurity
1.4 Explain encryption methods and applications
1.3 Explain access management principles
CompTIA Tech+
6.6 Explain common uses of encryption
ISC2 CC
5.1 Understand data security
NIST NICE
K1203 Knowledge of Public Key Infrastructure (PKI) libraries
S0657 Skill in implementing Public Key Infrastructure (PKI) encryption

Key terms

Digital Signature
A cryptographic mechanism used to verify the authenticity and integrity of a digital message or document.
Hash Function
A mathematical algorithm that converts input data of any size into a fixed-size output value used to verify data integrity.
Asymmetric Encryption
An encryption method that uses a public key to encrypt data and a private key to decrypt it.
Public Key
A cryptographic key that can be shared openly and is used to encrypt data or verify digital signatures.
Private Key
A secret cryptographic key used in asymmetric encryption to decrypt data or create digital signatures.
Digital Certificate
An electronic document that uses a digital signature to bind a public key with an identity.
Certificate Authority
CA
A trusted entity that issues digital certificates used to verify the identity of individuals, organizations, or devices.
Public Key Infrastructure
PKI
A framework of hardware, software, policies, and standards used to create, manage, and distribute digital certificates.
Integrity
The assurance that data has not been tampered with and remains accurate and complete.
Non-repudiation
The assurance that a party cannot deny having sent or received a message or performed an action.

Topics

Digital Signatures Cryptography Public Key Infrastructure Asymmetric Encryption Hashing Digital Certificates Data Integrity

Transcript

With public key infrastructure we can detect the authenticity and integrity of a website, but we can also do that with somebody's message, and we can do that through something called digital signatures.

We'll briefly talk about integrity and authenticity when it comes to messages. We'll talk about digital certificates and how we can use digital certificates when it comes to digital signatures. We'll talk about public key infrastructure and how that plays into digital signatures. And then we'll wrap things up by talking about the technical aspects of a digital signature.

Integrity and authenticity

When Susan sends a message to David, David may want to know that the message has integrity and authenticity. Obviously we don't do that with every single message that we send, but for the more critical ones it's going to be important that there is some sort of validation behind that, especially if it's a legal document. There are times when there is a legal document that we want signed and we want to make official, and we can do that through digital signatures.

Digital certificates and public key infrastructure

As part of this process we have a digital certificate. That certificate includes the public key on it, so that public key and certificate is going to be sent over to David, so David can do part of this confirmation. That way the private key can encrypt something, and if the public key decrypts that, it can be a form of verification.

Of course, there is an issue: if our private key, our public key and our certificate are all coming from the same source, how do we verify that that source is who they say it is — that authenticity part of this? Well, we can go to a certificate of authority. So we can use public key infrastructure to verify the certificate, to make sure it is in fact coming from Susan, the person that we expect it to be coming from.

How a digital signature works

So how do digital signatures work to create integrity and authenticity? Susan here has signed a document. This document right here is going to be digitally signed; it's going to be a legal document. What she's going to do is create a hash out of that — that fingerprint. So she's going to create a hash, which is the fingerprint of that document. Then what she'll do is take her private key and encrypt that hash to create an encrypted hash. Then she'll put that encrypted hash into a message along with the document and send it to David.

Now what David has is that document, and he also has that encrypted hash. What he can do is the same hashing algorithm, to figure out what that fingerprint should look like. He can also take the public key that's part of this certificate that's been already validated through public key infrastructure, and he can decrypt this hash to get the fingerprint — and the fingerprint that Susan figured out over here. If these two fingerprints match, then he knows that this public key that's already been validated comes from the proper private key, and that everything lines up.

So integrity has happened: the document hasn't changed, and you know it hasn't changed because his fingerprint lines up with the original fingerprint. And it also has created authenticity: he knows that he has the public key, the validated public key, that matches with the private key that Susan has. So that is a digital signature, proving both integrity and authenticity.

We started out by talking about integrity and authenticity. We talked about how digital certificates can be used to transfer the public key over, and how public key infrastructure can be used to validate the certificate. Once we have an accurate certificate, then we talked about digital signatures and how we can do a hash to make sure that there's integrity, and then also encrypt that hash to validate the sender, or that authenticity piece. So that is digital signatures and how digital signatures work.

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 →