---
title: "Encryption without the maths"
description: "Symmetric and asymmetric encryption, hashing, signatures, TLS, certificates, HTTPS and HSTS made simple, plus how to read a TLS grade from A+ to F."
url: https://krakenshield.eu/knowledge/a-to-z/08-encryption-explained/
lang: en
updated: 2026-10-02
publisher: KrakenShield (KRAKEN HOLDING SAS)
overview: https://krakenshield.eu/llms.txt
---
# Encryption without the maths
> Symmetric and asymmetric encryption, hashing, signatures, TLS, certificates, HTTPS and HSTS made simple, plus how to read a TLS grade from A+ to F.

Protecting your systems Chapter 8

Symmetric and asymmetric encryption, hashing, signatures, TLS, certificates, HTTPS and HSTS made simple, plus how to read a TLS grade from A+ to F.

## What you will learn

- Tell symmetric and asymmetric encryption apart using everyday analogies
- Understand what hashing and digital signatures are for
- Follow a TLS connection step by step and see why forward secrecy matters
- Know what the HTTPS padlock guarantees, and above all what it does not
- Read a TLS grade from A+ to F and avoid the mistakes that drag it down

## Why encrypt?

Every time you check your bank account, send a quote or log in to an online tool, your data crosses dozens of devices you do not control: the home router, the hotel Wi-Fi, the internet provider, routers on the other side of the world. Without protection, any of those intermediaries could read or alter what passes through.

[Encryption](https://krakenshield.eu/knowledge/glossary/encryption/) turns a readable message into a string of characters that means nothing to anyone without the key. The good news: you do not need to understand the underlying mathematics to use it properly. You need to grasp three ideas and avoid a handful of mistakes.

## Symmetric encryption: one key

Picture a safe where the same key both locks and unlocks it. You put a document inside, lock it and ship it. Your correspondent opens it with a copy of the key. That is **symmetric** encryption.

Its best-known representative is AES, standardised by NIST in 2001 and used everywhere: Wi-Fi, encrypted drives, web connections. It is very fast and, with a 128-bit or 256-bit key, beyond the reach of any [brute-force](https://krakenshield.eu/knowledge/glossary/brute-force/) attack.

≈ €30

*the cost in 2026 of recovering a 56-bit DES key by brute force (about 26 hours on a dedicated machine). For a 128-bit key, ANSSI estimates the cost at around 100 billion billion euros.*

Source: ANSSI, cryptographic mechanisms guide, v3.00 (2026)

Key length therefore matters enormously. But symmetric encryption has a built-in flaw: how do you get the copy of the key to your correspondent without someone intercepting it on the way?

## Asymmetric encryption: the letterbox

Think of a letterbox. Anyone can push an envelope through the slot: that is the **public key** , which you hand out freely. Only the owner has the key that opens the box: that is the **private key** , which never leaves home. This is **asymmetric** encryption, with algorithms such as RSA or those based on elliptic curves.

It solves the key-sharing problem, but it is slow. The solution used everywhere is to combine the two: asymmetric cryptography is used to agree on a secret key, then symmetric encryption protects the conversation.

There is even a method, invented by Diffie and Hellman in 1976, that lets two people build a shared secret while talking in public. The classic analogy uses paint: each person secretly adds their own colour to a base colour everyone knows, they swap their mixtures, then each adds their secret colour again. Both end up with the same final shade, which an onlooker cannot rebuild from the mixtures that were exchanged.

## Hashing and signatures: integrity and proof of origin

[Hashing](https://krakenshield.eu/knowledge/glossary/hashing/) computes a fixed-size fingerprint from any content. Change one comma in a hundred-page contract and the fingerprint changes completely. You cannot, however, rebuild the contract from the fingerprint. It is used to check that a file has not been altered and to store passwords (with precautions covered in chapter 5). The SHA-2 family, including SHA-256, is today’s reference.

A [digital signature](https://krakenshield.eu/knowledge/glossary/digital-signature/) is the modern wax seal. The sender computes the document’s fingerprint and “seals” it with their private key. Anyone can check the seal with the matching public key. If the document was changed, or someone else sealed it, the check fails. A signature therefore proves both integrity and origin.

> **Belinda PhD in cryptography:** Encryption protects the secret; signatures protect trust. On a military network, an order the enemy can read is serious; a forged order accepted as genuine is worse. The internet is no different.

## TLS: what happens when you open a website

[TLS](https://krakenshield.eu/knowledge/glossary/tls/) (Transport Layer Security) is the protocol that protects most communications on the internet: websites, email, APIs. Its ancestor, SSL, is dead and buried, even if the name lingers. The IETF formally retired TLS 1.0 and 1.1 in 2021. That leaves TLS 1.2 and TLS 1.3, published in 2018, which is faster and stripped of dangerous options.

### The handshake, simplified

With TLS 1.3, a connection starts like this:

1. **Your browser says hello.** It lists the versions and algorithms it knows, and sends its half of a key exchange.
2. **The server replies.** It picks the algorithms, sends its half of the exchange, its certificate and a signature proving it holds the matching private key.
3. **The browser checks** that the certificate is valid, matches the site’s name and is signed by a trusted authority.
4. **Both sides compute the same session key** , without ever sending it, then encrypt everything else with a symmetric algorithm (AES-GCM or ChaCha20-Poly1305).

All of this takes a few milliseconds and a single round trip.

### Forward secrecy

In older configurations, the session key was sent encrypted with the server’s public key. A spy who recorded traffic for years and then one day stole the matching private key could read everything after the fact. **Forward secrecy** removes that risk: each session uses an ephemeral key, destroyed at the end. Stealing the server’s key does not unlock the past. TLS 1.3 makes it mandatory; with TLS 1.2 you need to choose ECDHE suites, as ANSSI recommends.

## Certificates and certificate authorities

How do you know you are talking to your bank’s real server, and not to an impostor sitting between you, in a [man-in-the-middle](https://krakenshield.eu/knowledge/glossary/man-in-the-middle/) attack? Thanks to the certificate.

A [certificate](https://krakenshield.eu/knowledge/glossary/certificate-pki/) is a digital identity card: it binds a domain name to a public key and is signed by a **certificate authority** (CA). Your browser and operating system hold a list of trusted root authorities; every certificate must trace back to one of them, usually through an intermediate authority. That is the chain of trust.

Three recent developments worth knowing:

- **Free, automated certificates** (Let’s Encrypt and the ACME protocol) have made HTTPS universal. They only prove that the requester controls the domain.
- **Certificate Transparency** : public certificates are recorded in public logs. You can therefore monitor those issued for your domains and spot a fraudulent one.
- **Ever shorter lifetimes** : the CA/Browser Forum, which sets the industry’s rules, voted in April 2025 for a gradual reduction. Since 15 March 2026, a public certificate can last no more than 200 days; this falls to 100 days from 15 March 2027, then 47 days from 15 March 2029. Manual renewal is no longer an option.

## HTTPS: what the padlock guarantees, and what it does not

HTTPS is simply HTTP carried inside TLS. It guarantees three things: nobody can read the exchange on the way, nobody can alter it without detection, and the server really belongs to the domain shown.

It does **not** guarantee that the site is honest, that the server is well secured, or that your data will be handled properly. A fraudster can get a valid certificate in minutes for “banque-azur-verification.com”, a domain they control. Google reports that nearly all [phishing](https://krakenshield.eu/knowledge/glossary/phishing/) sites use HTTPS.

11%

*of participants in a 2021 Google study correctly understood what the padlock means. Chrome replaced it in 2023 with a neutral icon.*

Source: Chromium Blog, May 2023

> **Nestor Former hacker turned defender:** The fake sites I saw fifteen years ago often gave themselves away by having no padlock. Today they all show one, with a free and perfectly valid certificate. Read the domain name, not the icon.

### HSTS: no going back

One weak spot remains: the very first visit. If you type “example.com”, the browser may first try an unencrypted connection, which an attacker on public Wi-Fi can intercept to keep you on HTTP. [HSTS](https://krakenshield.eu/knowledge/glossary/hsts/) (HTTP Strict Transport Security) fixes this: the site sends a `Strict-Transport-Security` header telling the browser to use only HTTPS for a set period (the max-age parameter). To be protected from the very first visit, a domain can join the HSTS preload list built into browsers, after checking that all its subdomains work over HTTPS.

## Reading a TLS grade, from A+ to F

Several tools grade a server’s TLS configuration. The public reference methodology is the one from SSL Labs (Qualys). It first assesses the certificate, then three weighted categories: protocols accepted (30%), key exchange (30%) and cipher strength (40%). The resulting score gives a letter (A from 80 out of 100, B from 65, and so on down to F), and then **caps** apply:

| Finding | Effect on the grade |
| --- | --- |
| Expired, self-signed or revoked certificate, or unknown authority | Grade voided (shown as T or F) |
| Certificate name does not match the domain | M |
| SSL 2.0 accepted, or a critical flaw (Heartbleed, for example) | F |
| SSL 3.0, TLS 1.0 or TLS 1.1 still accepted | B at best |
| No forward secrecy | B at best |
| No authenticated encryption (AEAD) | B at best |
| Incomplete certificate chain | B at best |
| No TLS 1.3 (since 2025) | A- at best |
| HSTS missing or invalid (since 2025) | A- at best |
| No warnings, plus HSTS of at least six months | A+ possible |

The TLS grade KrakenShield gives your domains follows these criteria (May 2025 version): the same reading, explicit caps, and for each finding the fix to apply. Remember the essentials: **A or A+ means the channel is solid; B almost always points to an old protocol or a dated set of algorithms; T, M or F call for immediate action.**

A grade only measures the channel. An A+ site can still host a vulnerable application: that is the subject of chapter 11.

## The most common mistakes

1. **The expired certificate.** The site becomes unreachable, mobile apps and APIs stop working. With ever shorter certificates, only automation holds up.
2. **The incomplete chain.** The intermediate certificate is missing: some browsers compensate, other clients fail at random.
3. **Old protocols kept “for compatibility”.** TLS 1.0 and 1.1 add nothing but risk. ANSSI recommends favouring TLS 1.3 and accepting TLS 1.2.
4. **HTTPS without HSTS** , or content loaded over HTTP on an HTTPS page (mixed content).
5. **Forgotten services.** The website scores A+, but email, the extranet, the admin interface or the API run on a 2015 configuration.
6. **A poorly protected private key** , copied onto many servers. ANSSI recommends dedicating each certificate to a single TLS endpoint.

> **Real case**
> Real case
> 
> **Equifax, 2017: an expired certificate, an invisible breach.** According to the report by the GAO (the US Government Accountability Office), Equifax had a tool to inspect network traffic, but an expired digital certificate stopped it from analysing encrypted traffic. The certificate had expired about ten months before the intrusion. The attackers were able to run commands and remove data without being detected. Personal information on at least 145.5 million US consumers was exposed. The intrusion was only spotted after the certificate was replaced.

> **Tip**
> Tip
> 
> To configure a web server, Mozilla’s TLS configuration generator offers ready-made settings for the level of compatibility you need. Choose the “intermediate” profile (TLS 1.2 and 1.3) for most sites, test it, then monitor the expiry dates of all your certificates, not just the main website’s.

> **Belinda PhD in cryptography:** Weak encryption is an armoured door with the key under the mat. Modern encryption is solid; what breaks are forgotten certificates, old protocols and default settings. They are also the easiest things to fix.

The next chapter looks further ahead: what happens to RSA and elliptic curves when a future quantum computer arrives, and why [post-quantum cryptography](https://krakenshield.eu/knowledge/glossary/post-quantum-cryptography/) is already reaching your browser.

## Key takeaways

1. Symmetric encryption is fast but requires a shared secret; asymmetric encryption solves the sharing problem. TLS combines both on every connection.
2. Hashing checks that content has not changed, a signature proves who issued it, and a certificate is a digital identity card signed by a certificate authority.
3. The padlock proves the connection is encrypted with the server of the domain shown, not that the site is honest: nearly all phishing sites use HTTPS.
4. Aim for TLS 1.3 (TLS 1.2 tolerated), switch off SSL, TLS 1.0 and TLS 1.1, enforce forward secrecy and enable HSTS.
5. Automate certificate renewal: the maximum lifetime has been 200 days since March 2026 and will drop to 47 days in 2029.

## Were you paying attention?

Three questions to check, no score, no account.

## Sources

- [ANSSI, Security recommendations for TLS (v1.2, 2020, in French)](https://messervices.cyber.gouv.fr/guides/recommandations-de-securite-relatives-tls)
- [ANSSI, Rules and recommendations for choosing and sizing cryptographic mechanisms (v3.00, 20 March 2026, in French)](https://messervices.cyber.gouv.fr/guides/mecanismes-cryptographiques)
- [NIST FIPS 197, Advanced Encryption Standard (AES)](https://csrc.nist.gov/pubs/fips/197/final)
- [IETF RFC 8446, The Transport Layer Security (TLS) Protocol Version 1.3 (2018)](https://www.rfc-editor.org/rfc/rfc8446)
- [IETF RFC 8996, Deprecating TLS 1.0 and TLS 1.1 (2021)](https://www.rfc-editor.org/rfc/rfc8996)
- [IETF RFC 6797, HTTP Strict Transport Security (2012)](https://www.rfc-editor.org/rfc/rfc6797)
- [IETF RFC 6962, Certificate Transparency](https://www.rfc-editor.org/rfc/rfc6962)
- [CA/Browser Forum, Ballot SC-081v3: reducing certificate validity periods (April 2025)](https://cabforum.org/2025/04/11/ballot-sc081v3-introduce-schedule-of-reducing-validity-and-data-reuse-periods/)
- [Qualys SSL Labs, SSL Server Rating Guide (version 2009r, May 2025)](https://github.com/ssllabs/research/wiki/SSL-Server-Rating-Guide)
- [Qualys, Key Changes in SSL Labs Grading (2025)](https://notifications.qualys.com/product/2025/02/26/key-changes-in-ssl-labs-grading-and-qualys-certview)
- [US GAO, report GAO-18-559 on the Equifax data breach (August 2018)](https://www.gao.gov/products/gao-18-559)
- [Chromium Blog, An Update on the Lock Icon (May 2023)](https://blog.chromium.org/2023/05/an-update-on-lock-icon.html)
- [Mozilla, SSL Configuration Generator](https://ssl-config.mozilla.org/)
- [HSTS Preload List](https://hstspreload.org/)

## Preparing for the CISSP?

This chapter is a foundation for domains 3 and 4 of our CISSP preparation, which adds everything else the exam asks for.

[All chapters](https://krakenshield.eu/knowledge/a-to-z/)
