Agentic AI
Four practical patterns to deploy post-quantum cryptography in Spring Boot now
Teams can begin protecting long-lived banking data against future quantum threats using Kyber encryption and Dilithium signatures, without waiting for quantum-safe TLS.
InfoQ
Now that NIST finalized post-quantum cryptography (PQC) standards in August 2024, engineering teams in regulated industries face a pressing question: where should they actually start? The obvious answer—switching to quantum-safe TLS—remains unavailable across most cloud providers. Meanwhile, the real threat is already unfolding: adversaries are capturing encrypted traffic today to decrypt later when quantum computers mature around 2030–2035.
For retail banking platforms built on Spring Boot, the migration strategy needs to account for the fact that different data types have vastly different risk profiles and timelines. Loan agreements archived for decades face different quantum threats than fifteen-minute session tokens.
Four deployment patterns for quantum-safe banking#
A concrete example illustrates the challenge: a typical mid-to-large bank runs a Transaction Service posting payment instructions to a Core Banking Service, stores customer personally identifiable information (PII) and Know Your Customer (KYC) data in PostgreSQL, archives loan agreements in cloud storage, and wires OAuth2 service tokens into regulatory reporting pipelines. Each of these components requires a different approach.
Inter-service payload encryption: Rather than rely solely on TLS (which can be unwrapped by quantum computers), encrypt HTTP request bodies using Kyber key encapsulation and AES-256-GCM before transmission. The receiving service decrypts with its Kyber private key. This protects data even if TLS gets terminated at API gateways or load balancers inside the network perimeter.
Field-level database encryption: Sensitive fields like SSNs and tax IDs can be encrypted with Kyber before being persisted to the database. The plaintext never touches disk. However, this approach only reaches production when the application's private key is managed by a key management service (KMS) or HashiCorp Vault—holding the key in the JVM heap fails any security audit, since heap dumps or server restarts would expose every encrypted record.
Long-lived document signing: Loan agreements, audit trails, and account-opening contracts archived for years must be signed with Dilithium, a lattice-based algorithm immune to quantum attacks. A signature created today remains cryptographically valid in 2045. Retroactively re-signing ten-year-old archived documents is not feasible, making this the highest priority for compliance frameworks like DORA (EU) and OCC guidelines (US).
OAuth2 token security for service accounts: Tokens used by core banking, fraud detection, and regulatory pipelines may persist for months or years, making them higher-priority targets than short-lived customer sessions. These should be signed with Dilithium at issuance.

