TechKnowSurge
CompTIA Security+ 1.4 ISC2 CISSP 3.6 NIST 800-53 SC-13 EC-Council CEH 9.1 CompTIA SecurityX 2.2 NIST 800-53 SC-17
VideoSecurityFree

Using Digital Signatures

Digital signatures use hashing and public key cryptography to verify both the integrity and authenticity of messages and legal documents. Public key infrastructure (PKI) supports this process by validating the digital certificates that carry the signer's public key.

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

About this video

Digital signatures are a cryptographic mechanism that simultaneously verify the integrity and authenticity of digital messages and documents, making them especially critical in legal and high-stakes communications. The process relies on asymmetric key cryptography, where a sender holds a private key and distributes a corresponding public key through a digital certificate. That certificate is validated by a certificate authority as part of a public key infrastructure (PKI), ensuring the public key genuinely belongs to the expected sender rather than an unknown or malicious party. To create a digital signature, the sender runs the document through a hashing algorithm to produce a fixed-length fingerprint unique to that document's content. The sender then encrypts that hash with their private key, and the resulting encrypted hash is bundled with the original document and transmitted to the recipient. On the receiving end, the recipient decrypts the hash using the sender's validated public key and independently hashes the received document. If both fingerprints are identical, the recipient can be confident the document was not modified in transit and that it was signed by the holder of the matching private key — confirming integrity and authenticity in a single, verifiable operation.

What you'll learn

What's covered

Digital Signatures

Aligned to

CompTIA Security+
1.4 Explain the importance of using appropriate cryptographic solutions.
ISC2 CISSP
3.6 Select and determine cryptographic solutions.
NIST 800-53
SC-13 Cryptographic Protection
SC-17 Public Key Infrastructure Certificates
EC-Council CEH
9.1 Cryptography
CompTIA SecurityX
2.2 Given a scenario, implement appropriate PKI infrastructure solutions.

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.
Non-repudiation
The assurance that a party cannot deny having sent or received a message or performed an action.

Topics

Digital Signatures Asymmetric Encryption Hashing Public Key Infrastructure Digital Certificates Cryptography

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.

Integrity and authenticity of a message

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 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 this 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 she's going to create a hash out of that, that fingerprint. So she's going to create a hash, which is a fingerprint of that document, and then what she'll do is she'll take her private key and encrypt that hash to create an encrypted hash. Then what she'll do is 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 he can do 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, the fingerprint that Susan figured out over here. So 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 he knows it hasn't changed because his fingerprint lines up with the original fingerprint. It also has created authenticity: he knows that he has the validated public key that matches with the private key that Susan has. So that is a digital signature, proving both integrity and authenticity.

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 →