Aller au contenu
uencoder

Implement HSTS (HTTP Strict Transport Sécurité)

HSTS forces browsers en toujours utiliser HTTPS pour your site, preventing protocol downgrade attacks et SSL stripping.

  1. 1

    HSTS is an HTTP header: Strict-Transport-Security: max-age=31536000; includeSubDomains; preload. Once a browser sees this header over HTTPS, it will only use HTTPS for your site for max-age seconds, ignoring HTTP. This prevents downgrade attacks and SSL stripping. includeSubDomains applies to all subdomains. preload allows submission to the HSTS preload list (built into browsers).

  2. 2
    Calculatrice de hash →

    HSTS does not use hashing directly, but the preload list submission requires your site to be served over HTTPS with a valid certificate. Verify your certificate chain is complete and your HTTPS configuration is correct before enabling HSTS — once a browser caches HSTS, it will refuse HTTP connections, and a broken HTTPS will make the site inaccessible.

  3. 3
    Générateur HMAC →

    For API authentication over HTTPS, use HMAC to sign requests. HSTS ensures the connection is HTTPS, and HMAC ensures the request is authentic. Together they provide confidentiality (HTTPS) and integrity (HMAC). This is a common pattern for API security.

Questions fréquentes

What is the HSTS preload list?
A list of domains built into browsers that always use HTTPS, even on the first visit (before seeing the HSTS header). Submit your domain at hstspreload.org. Requirements: valid HTTPS, HSTS header with max-age ≥ 1 year, includeSubDomains, and serve the header on the root domain. Once preloaded, removal takes months — do not preload if you might need HTTP.
Can HSTS lock users out?
Yes. If your HTTPS certificate expires or is misconfigured, browsers with HSTS cached will refuse to connect (they will not fall back to HTTP). This is why you must monitor certificate expiration and have automated renewal. Start with a short max-age (e.g., 300 seconds) for testing, then increase to 1 year once confident.

Workflows résolvant cette tâche

Hacher le contenu et coder en Base64
Calculer un hachage de l'entrée et coder le condensat en Base64 pour un transport compact.
PIPELINE
Hacher le texte et vérifier l'intégrité
Calculer un hachage du texte d'entrée et le comparer à un hachage attendu pour vérifier l'intégrité.
PIPELINE
Hacher le texte et vérifier avec somme CRC32
Calculer à la fois un hachage cryptographique SHA-256 et une somme de contrôle CRC32 pour la vérification d'intégrité des données.
PIPELINE
Signer HMAC puis coder en Base64
Générer une signature HMAC puis coder en Base64 pour les en-têtes d'authentification API.
PIPELINE
Signer HMAC et vérifier
Générer une signature HMAC pour un message et la vérifier contre une signature attendue.
PIPELINE
Signer HMAC une chaîne de requête API
Générer une signature HMAC-SHA256 pour une charge utile de requête pour authentifier les appels API.
PIPELINE
Hacher MD5 puis coder en Base58
Calculer le hash MD5 puis coder en Base58 pour une représentation compacte.
PIPELINE
Comparaison de vitesse multi-hash
Hacher l'entrée et benchmarker plusieurs algorithmes de hachage pour comparer leur vitesse et sortie.
PIPELINE
Générer un mot de passe et hacher
Générer un mot de passe aléatoire puis le hacher pour un stockage sécurisé.
PIPELINE
Hash SHA3-256 avec somme CRC32
Calculer le hash SHA3-256 puis la somme CRC32 pour une double vérification d'intégrité.
PIPELINE
Hacher SHA-512 puis Hex
Calculer le hash SHA-512 puis coder en Hex pour lisibilité.
PIPELINE
Inverser le texte et hacher
Inverser le texte puis calculer le hachage SHA-256 du résultat inversé.
PIPELINE
Brouiller le texte et hacher
Brouiller le texte puis hacher le résultat brouillé.
PIPELINE

Outils associés