{"id":17000,"date":"2023-06-01T17:09:46","date_gmt":"2023-06-01T21:09:46","guid":{"rendered":"https:\/\/www.thesslstore.com\/blog\/?p=17000"},"modified":"2023-06-14T10:45:00","modified_gmt":"2023-06-14T14:45:00","slug":"how-public-private-key-pairs-work-in-cryptography-5-common-examples","status":"publish","type":"post","link":"https:\/\/www.thesslstore.com\/blog\/how-public-private-key-pairs-work-in-cryptography-5-common-examples\/","title":{"rendered":"How Public Private Key Pairs Work in Cryptography: 5 Common Examples"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-step-by-step-guides-with-illustrations-showing-how-cryptographic-key-pairs-work-in-five-different-public-key-infrastructure-pki-scenarios\">Step-by-step guides (with illustrations) showing how cryptographic key pairs work in five different public key infrastructure (PKI) scenarios.<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We know private-public key pairs are used in a multitude of ways (encryption, authentication, digital signatures, etc.) within an IT environment. But the ways they\u2019re used differ dramatically for each use case. This may leave you wondering: how exactly does it all work \u201cunder the hood?\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you\u2019ve ever wanted to know the specifics of each use case in how they\u2019re used, here\u2019s an overview of the five different use cases.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s hash it out.<span id=\"newline\"><\/span><\/p>\n\n\n<span style=\"--tl-form-height-m:150.25px;--tl-form-height-t:121.4583px;--tl-form-height-d:121.4583px;\" class=\"tl-placeholder-f-type-shortcode_12753 tl-preload-form\"><span><\/span><\/span>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-public-keys-encrypt-and-private-keys-decrypt-right\">Public Keys Encrypt and Private Keys Decrypt \u2014 Right?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The short answer? Not always. Yes, in most use cases, a public key is used to encrypt data while its corresponding private key is used to decrypt secrets. However, there are exceptions when it comes to certain processes. We\u2019ll break all of this down for you in the following sections, taking a look at five very common use cases:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SSL\/TLS (HTTPS)<\/li>\n\n\n\n<li>Code Signing<\/li>\n\n\n\n<li>Document Signing<\/li>\n\n\n\n<li>Email Signing<\/li>\n\n\n\n<li>Email Encryption<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-1-how-a-public-private-key-pair-works-during-an-ssl-tls-connection\">1. How a Public-Private Key Pair Works During an SSL\/TLS Connection<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When you visit a secure website using HTTPS, every connection starts with a process called a TLS handshake. This process involves using <strong>public key encryption<\/strong> (i.e., asymmetric encryption) to exchange sensitive information before switching to <strong>symmetric encryption<\/strong> for the rest of the session.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Why bother switching? Because symmetric encryption requires less computational power than public key encryption does. Even though we\u2019re talking about minuscule amounts of time (i.e., milliseconds), it\u2019s more efficient for at-scale data encryption (i.e., for larger organizations with higher web traffic).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To encrypt your website\u2019s connections, you need to have an <a href=\"https:\/\/www.thesslstore.com\/products\/ssl.aspx\"><strong>SSL\/TLS certificate<\/strong><\/a> installed on your server. It also requires the client and server to introduce themselves and exchange essential information to create a secure encrypted session. This back-and-forth process is called the TLS handshake, of which most browsers support two varieties \u2014 TLS 1.2 (most common) and TLS 1.3.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s an overview of how the TLS 1.2 handshake process works:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When a client (browser) connects to a server (website), the two parties exchange certain protocols about the cryptographic processes they support. The client sends a large, random prime value (called a \u201cclient random\u201d).<\/li>\n\n\n\n<li>The server sends its <strong>SSL\/TLS certificate<\/strong> and <strong>public key<\/strong> to the client (browser), along with a \u201cserver random\u201d value (yeah, same concept as the client random value) that can be used in combination with the client random to create a <strong>symmetric session key<\/strong>.<\/li>\n\n\n\n<li>The client checks the server\u2019s certificate and uses the <strong>server\u2019s public key<\/strong> to encrypt the symmetric key values it sends back to the server. (The specifics vary based on which key exchange algorithm is used.)<\/li>\n\n\n\n<li>Both parties use their exchanged data to calculate a <strong>symmetric session key <\/strong>(i.e., shared session key).<\/li>\n\n\n\n<li>The client checks the server\u2019s <strong>message authentication code (MAC)<\/strong> to ensure the handshake hasn\u2019t been tampered with.<\/li>\n\n\n\n<li>Both parties use the shared session key to create a secure, symmetric encrypted connection.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"940\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/tls-12-handshake-public-private-key-pair.jpg\" alt=\"An illustration that shows the roles of private and public keys in the TLS 1.2 handshake.\" class=\"wp-image-17002\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/tls-12-handshake-public-private-key-pair.jpg 750w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/tls-12-handshake-public-private-key-pair-239x300.jpg 239w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/tls-12-handshake-public-private-key-pair-75x94.jpg 75w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\"><em>Image caption: An illustration that shows the interactions between the client and web server during a TLS 1.2 handshake. It also shows the exchange of the server\u2019s public key, how it never shares the private key, and how the server and client use that cryptographic key pair to ultimately create a shared session key that they\u2019ll use for the rest of the session.<\/em><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When it comes to the <a href=\"https:\/\/www.thesslstore.com\/blog\/tls-1-3-handshake-tls-1-2\/\">TLS 1.3 handshake<\/a>, the process differs somewhat, particularly regarding the key exchange process. The idea is to streamline everything into a single roundtrip.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But the basic concept stays the same: the public-private keypair is used to securely exchange a symmetric key that\u2019s used for the actual data encryption.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-2-how-code-signing-uses-private-and-public-keys-to-secure-executables-and-code\">2. How Code Signing Uses Private and Public Keys to Secure Executables and Code<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s consider the uses of public-private key pairs in software security. The process for securing code, software, executables, etc. involves the developer or publisher using a <a href=\"https:\/\/www.thesslstore.com\/products\/code-signing-certificates.aspx\"><strong>code signing certificate<\/strong><\/a> to add a digital signature to their software executable. This process uses <a href=\"https:\/\/www.thesslstore.com\/blog\/cryptographic-keys-101-what-they-are-how-they-secure-data\/\">cryptographic keys<\/a> and functions (i.e., hashing and encryption) to authenticate the developer\/publisher who created the asset and validate that the file or code hasn\u2019t been modified since it was signed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Remember toward the beginning of this article we said that it\u2019s not always the case that public keys encrypt and private keys decrypt? This is what we were referring to.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But what does this process look like in terms of how and when each key is used?<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The developer applies a <strong>hash function<\/strong> (i.e., hash algorithm) to their software\/code. This creates as fixed-length <strong>hash digest<\/strong> (i.e., <strong>hash value<\/strong>).<\/li>\n\n\n\n<li>They use their <strong>private key<\/strong> to encrypt the resulting hash digest. This key must be stored on a secure device, such as a secure token or hardware security module (HSM), based on industry <a href=\"https:\/\/cabforum.org\/baseline-requirements-code-signing\/\">code signing baseline requirements<\/a>.<\/li>\n\n\n\n<li>The developer then uses their <strong>code signing certificate<\/strong> to create a digital signature and <strong>apply a timestamp <\/strong>(Note: the timestamp is optional but recommended) to the software.<\/li>\n\n\n\n<li>Their digitally signed software is distributed or released with the developer\u2019s public key and certificate attached.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"999\" height=\"359\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-code-signing-works-public-private-key-pair.png\" alt=\"A step-by-step illustration of how the code signing process works using a private key.\" class=\"wp-image-17004\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-code-signing-works-public-private-key-pair.png 999w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-code-signing-works-public-private-key-pair-300x108.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-code-signing-works-public-private-key-pair-768x276.png 768w\" sizes=\"auto, (max-width: 999px) 100vw, 999px\" \/><figcaption class=\"wp-element-caption\"><em>Image caption: An illustration that breaks down the process of how code signing works and where half of the public-private key pair comes into play.<\/em><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">So, where does the public key come into play? During the software verification process that happens on the client end:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The end user downloads the software. Their browser or operating system (OS) checks the digital signature to ensure it is valid, is trusted, and hasn\u2019t been altered.<\/li>\n\n\n\n<li>Their system will apply the developer\u2019s <strong>public key<\/strong> to the digest to decrypt it. It then <strong>compares that original hash digest<\/strong> to one that the system creates to see if it matches.<\/li>\n\n\n\n<li>If the hash values match, then they\u2019ve got a winner. If the values don\u2019t, Windows operating systems and browsers will warn the user that your software shouldn\u2019t be trusted.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"429\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-code-signing-verification-works-1024x429.png\" alt=\"A step-by-step illustration of how the code signing verification process works using the corresponding public key.\" class=\"wp-image-17005\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-code-signing-verification-works-1024x429.png 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-code-signing-verification-works-300x126.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-code-signing-verification-works-768x322.png 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-code-signing-verification-works.png 1155w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><em>Image caption: An illustration that breaks down the role of the public key in the code signing verification process when a user downloads or tries to install digitally signed software or code.<\/em><\/figcaption><\/figure>\n\n\n<span style=\"--tl-form-height-m:861.156px;--tl-form-height-t:899.625px;--tl-form-height-d:899.625px;\" class=\"tl-placeholder-f-type-shortcode_12653 tl-preload-form\"><span><\/span><\/span>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-3-how-you-can-use-a-public-private-key-pair-to-digitally-sign-documents\">3. How You Can Use a Public-Private Key Pair to Digitally Sign Documents<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When we talk about document signing, we\u2019re not talking about signing the electronic form of your handwritten signature. (That can be easily spoofed!) Instead, we\u2019re referring to stamping your verifiable digital identity to a digital file (Word document, PDF, etc.) so people know it\u2019s authentic and hasn\u2019t been altered.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"989\" height=\"570\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2022\/11\/electronic-vs-digital-signature-example.jpg\" alt=\"A side-by-side set of screenshots that shows the differences between how different types of electronic (left) and digital signatures (middle and right) display.\" class=\"wp-image-15893\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2022\/11\/electronic-vs-digital-signature-example.jpg 989w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2022\/11\/electronic-vs-digital-signature-example-300x173.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2022\/11\/electronic-vs-digital-signature-example-768x443.jpg 768w\" sizes=\"auto, (max-width: 989px) 100vw, 989px\" \/><figcaption class=\"wp-element-caption\"><em>Image caption: An illustration that shows the difference between digital signatures (middle and right) and an electronic signature (left).<\/em><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Fun aside: A digital signature is a type of electronic signature, but not all types of electronic signatures are digital signatures. A little confused? Check out my former colleague\u2019s article if you want to learn more about the difference between <a href=\"https:\/\/www.thesslstore.com\/blog\/digital-signatures-why-you-should-sign-everything\/\">electronic and digital signatures<\/a>. Now, back to the main topic at hand\u2026<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As you\u2019ve probably now guessed, to digitally sign a document, you must have a <a href=\"https:\/\/www.thesslstore.com\/products\/email-document-signing-certificates.aspx\"><strong>document signing certificate<\/strong><\/a>. So, what\u2019s the role of the public and private key in this affair? Frankly, it\u2019s similar to what the private key does in the code signing process we described moments ago:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The document creator applies a <strong>hash function<\/strong> to their Word or PDF file. This creates a hash digest or hash value.<\/li>\n\n\n\n<li>They apply their <strong>private key<\/strong> to encrypt the file\u2019s hash digest. Much like with the code signing process, your document signing key also must be stored on a secure device (token, HSM, etc.) or in a key vault.<\/li>\n\n\n\n<li>The file owner then uses their <strong>document signing certificate<\/strong> to create the <strong>digital signature.<\/strong> They have the option of <strong>adding a timestamp<\/strong> to the file as well.<\/li>\n\n\n\n<li>The digitally signed document is now ready for use.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1004\" height=\"371\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-document-signing-works.png\" alt=\"public and private key pair graphic: An illustration that walks through the process of how document signing works and the role the securely stored private key plays in it.\" class=\"wp-image-17006\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-document-signing-works.png 1004w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-document-signing-works-300x111.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-document-signing-works-768x284.png 768w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/><figcaption class=\"wp-element-caption\"><em>Image caption: This graphic illustrates how a document signing private key is used to help create a digital signature for Microsoft Office documents and PDFs.<\/em><\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When the end user downloads the file, their device will check its digital signature.<\/li>\n\n\n\n<li>Their system will apply the developer\u2019s <strong>public key<\/strong> to the digest to decrypt it. They then <strong>compare that original hash digest<\/strong> to one that the system creates to see if it matches.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Now, it\u2019s time to shift gears and move on to signing email communications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-4-how-public-private-key-pairs-make-email-signing-possible\">4. How Public-Private Key Pairs Make Email Signing Possible<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Email signing is a process that enables an email sender to prove that they sent the email and that the message didn\u2019t come from an imposter. This process uses an <a href=\"https:\/\/www.thesslstore.com\/products\/email-document-signing-certificates.aspx\"><strong>email signing certificate<\/strong><\/a> (<strong>also called a client authentication certificate<\/strong>), which they install onto their device or import to their email client.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"557\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/windows-certificate-manager-example-1024x557.png\" alt=\"An example screenshot of the Certificate Manager where you can store certificates on a Windows device\" class=\"wp-image-17007\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/windows-certificate-manager-example-1024x557.png 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/windows-certificate-manager-example-300x163.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/windows-certificate-manager-example-768x417.png 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/windows-certificate-manager-example.png 1277w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><em>Image caption: An example screenshot of email signing and client authentication certificates that are installed in my Windows Certificate Manager.<\/em><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">So, what does this email signing process look like, and where does a public-private key pair fit into the equation?<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When digitally signing an email, the sender applies a <strong>hash function\/algorithm<\/strong> to the message.<\/li>\n\n\n\n<li>The sender applies their <strong>private key<\/strong> to encrypt that <strong>hash digest\/value<\/strong> to create the <strong>digital signature<\/strong>.<\/li>\n\n\n\n<li>The sender attaches their <strong>email signing certificate<\/strong> and <strong>public key<\/strong> to the outbound email. Together, this creates the <strong>digital signature block<\/strong>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"999\" height=\"334\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-email-signing-works.png\" alt=\"An illustration that demonstrates how the email signing process works and the role that the user's private key plays in it.\" class=\"wp-image-17008\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-email-signing-works.png 999w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-email-signing-works-300x100.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/how-email-signing-works-768x257.png 768w\" sizes=\"auto, (max-width: 999px) 100vw, 999px\" \/><figcaption class=\"wp-element-caption\"><em>Image caption: A screenshot of how the code signing process works and where the cryptographic key comes into play in digitally signing the email.<\/em><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once the message is received:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The email recipient uses the <strong>sender\u2019s public key<\/strong> to decrypt the email\u2019s <strong>hash digest<\/strong>.<\/li>\n\n\n\n<li>The recipient will compare this to a hash they generate to see if it matches.<\/li>\n\n\n\n<li>If it matches, then the recipient can feel confident that the email is authentic.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To learn more about <a href=\"https:\/\/www.thesslstore.com\/blog\/email-security-part-1-certificate-signed-emails\/\">certificate-signed emails<\/a>, check out our Hashed Out article that will walk you through how to import and use an S\/MIME certificate in Outlook.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-5-how-public-private-key-pairs-enable-secure-encrypted-email-communications\">5. How Public-Private Key Pairs Enable Secure, Encrypted Email Communications<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Email encryption is the process of randomly scrambling the contents of the email (words, images\/graphics, attachments, etc.) to transform it into an unreadable form <strong>before<\/strong> the user hits the \u201csend\u201d button. However, what it <em>doesn\u2019t<\/em> encrypt is the email header information.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Encrypting an email is akin to sealing secret, coded messages inside a secure cargo container; this way, it\u2019s safe from being viewed in transit or while sitting at the arrival location (while sitting on the email server). This is why it\u2019s sometimes called end-to-end encryption\u2014 because it\u2019s protected from one endpoint to the other.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, what\u2019s this process look like in terms of how the public-private key pair is used? It\u2019s time to shake things up a bit. (<strong>NOTE:<\/strong> Both the email recipient and sender must have an <strong>email signing certificate<\/strong> installed on their devices.)<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The email recipient must send their public key to the email sender.<\/li>\n\n\n\n<li>The email sender will then draft an email and add any attachments.<\/li>\n\n\n\n<li>When the <strong>email sender encrypts an email<\/strong>, they\u2019ll use the <strong>email <em>recipient\u2019s<\/em> public key<\/strong> to do so.<\/li>\n\n\n\n<li>Once the email is encrypted, they\u2019ll send it to the recipient.<\/li>\n\n\n\n<li>When the <strong>email recipient receives the email<\/strong>, their email client will use the <strong>recipient\u2019s private key <\/strong>to decrypt the message. This will unscramble the message so that it can be read.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"325\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/public-private-keys-in-email-encryption-1024x325.png\" alt=\"Public private key pair graphic: An illustration that breaks down the roles of public and private keys in the email encryption and decryption process.\" class=\"wp-image-17009\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/public-private-keys-in-email-encryption-1024x325.png 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/public-private-keys-in-email-encryption-300x95.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/public-private-keys-in-email-encryption-768x244.png 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/public-private-keys-in-email-encryption.png 1321w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Image caption: An illustration that demonstrates how email encryption works and how the public and private keys are used within that process.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Want to learn more about <a href=\"https:\/\/www.thesslstore.com\/blog\/how-to-send-encrypted-email-on-3-major-email-platforms\/\">how to send encrypted emails<\/a>? We\u2019ve got you covered in this article that walks you through the process on three major email platforms.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-let-s-wrap-this-up\">Let\u2019s Wrap This Up<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Although you don\u2019t need to know the intricacies of how public-private key pairs are used in public key cryptography, it certainly doesn\u2019t hurt to learn. Cryptographic keys are essential to everything relating to security on the internet. Whether it\u2019s securing the sensitive data submitted to your website or protecting the confidentiality and integrity of your emails, documents, and files, public key cryptography couldn\u2019t exist without the security of your public-private key pair.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Public-private key pairs help to enable the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Authentication<\/strong> \u2014 This boils down to digital identity validation and verification. It\u2019s what enables someone to know that another entity (i.e., a website, email sender, software publisher, document creator, etc.) is legitimate.<\/li>\n\n\n\n<li><strong>Data integrity<\/strong> \u2014 Public-private key pairs, in combination with cryptographic processes like hashing and encryption, make possible the digital signatures that prove the veracity of messages and files.<\/li>\n\n\n\n<li><strong>Non-repudiation<\/strong> \u2014 This entails validating that data came from the party in question and didn\u2019t originate from an unverified source, so long as the private key is kept secure.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">That last sentence brings us to our next point. Digital trust, the foundation of which is public key cryptography, is at the heart of internet security. If you can\u2019t trust that the identity of the website, software developer, document creator, or email sender is legitimate, then how can you trust that any data you send or receive from them is safe and can be trusted? You can\u2019t. &nbsp;This is why it\u2019s crucial to keep your private keys secure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We hope this article underscores the importance of securely managing and storing your private keys. By keeping those critical assets secure, you\u2019re preventing all of your (and your customers\u2019) sensitive data from falling into the wrong hands.<\/p>\n\n\n<span style=\"--tl-form-height-m:801.312px;--tl-form-height-t:638.344px;--tl-form-height-d:638.344px;\" class=\"tl-placeholder-f-type-shortcode_12763 tl-preload-form\"><span><\/span><\/span>","protected":false},"excerpt":{"rendered":"<p>Step-by-step guides (with illustrations) showing how cryptographic key pairs work in five different public key infrastructure (PKI) scenarios. We know private-public key pairs are used in a multitude of ways&#8230;<\/p>\n","protected":false},"author":17,"featured_media":17012,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":"","tve_updated_post":"","tve_custom_css":"","tve_user_custom_css":"","tve_globals":{},"tcb2_ready":0,"tcb_editor_enabled":0,"tve_landing_page":"","_tve_header":"","_tve_footer":""},"categories":[13107,130,16],"tags":[13235,329,13236],"class_list":["post-17000","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-beyond-hashed-out","category-everything-encryption","category-hashing-out-cyber-security","tag-cryptographic-keys","tag-key-pair","tag-pki-keys","post-with-tags"],"views":13706,"jetpack_featured_media_url":"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2023\/06\/public-private-key-pair-feature.jpg","_links":{"self":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts\/17000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/comments?post=17000"}],"version-history":[{"count":0,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts\/17000\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/media\/17012"}],"wp:attachment":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/media?parent=17000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/categories?post=17000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/tags?post=17000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}