Cryptography

Practical cryptography for solution architects — not deep math, but the patterns and tooling you need to design secure systems.


What’s Here

  • pki — Public Key Infrastructure, certificate authorities, certificate chains
  • keystore — Managing keys and certificates ( keystore, truststore, HSM)
  • signing-and-verifying — Digital signatures, message integrity, code signing

Quick Reference

TLS Termination

Client ──[TLS]──▶ Load Balancer ──[mTLS]──▶ Service A
                   (terminates TLS)      (service verifies client cert)

Certificate Types

TypeWhat It IsExample
Root CASelf-signed, trusted by everyoneDigiCert Root
Intermediate CASigned by root, signs leaf certsLet’s Encrypt R3
Leaf certificateEnd-entity cert, used by servicesapi.example.com
WildcardCovers all subdomains*.example.com

Key Exchange

AlgorithmUseNotes
RSAKey exchange + signaturesLegacy, being phased out
ECDHKey exchange (P-256, P-384)Modern, fast
EdDSASignatures (Ed25519, Ed448)Modern, recommended

  • security — Security architecture context
  • README — Auth patterns built on cryptography
  • tcpip — The transport layer TLS runs on