<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>The Seasoned Programmer Blog</title>
    <link>https://the-seasoned-programmer.com/blog</link>
    <description>In-depth articles on web security, tokens, cryptography and data formats from The Seasoned Programmer: how things work, how they break, and code you can run.</description>
    <language>en-us</language>
    <atom:link href="https://the-seasoned-programmer.com/blog/feed.xml" rel="self" type="application/rss+xml"/>
    <item>
      <title>Forging JWTs from the Attacker’s Side: Admin Without the Key</title>
      <link>https://the-seasoned-programmer.com/blog/jwt-attacks</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/jwt-attacks</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Wed, 02 Dec 2026 12:00:00 GMT</pubDate>
      <description>An attacker with an ordinary account and their own JWT can often become admin without ever seeing the signing key. We built a vulnerable API and forged an admin token five ways: alg None, RS256-to-HS256 confusion with the public key, a kid that reads /dev/null, a jku pointing at the attacker’s key set, and a weak HS256 secret cracked offline. Then we fixed the API and sent the same forgeries again.</description>
      <category>Security</category>
      <category>JWT</category>
      <category>Node.js</category>
    </item>
    <item>
      <title>Replay Attacks from the Attacker’s Side: Capture Once, Send Again</title>
      <link>https://the-seasoned-programmer.com/blog/replay-attacks</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/replay-attacks</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 30 Nov 2026 12:00:00 GMT</pubDate>
      <description>A replay attacker doesn’t break your crypto; they send a request you already accepted, again. We built five vulnerable servers and attacked each with one captured request: a webhook credited four times, a session cookie that outlived sign-out, a used password-reset link that took over the account, a token sent to the wrong API, and TLS 1.3 early data replayed through nginx. Then we fixed each one and ran the attack again.</description>
      <category>Security</category>
      <category>TLS</category>
      <category>JWT</category>
      <category>Webhooks</category>
      <category>Node.js</category>
    </item>
    <item>
      <title>Securing the OAuth Redirect: state, iss and Exact redirect_uri Matching</title>
      <link>https://the-seasoned-programmer.com/blog/oauth-redirect-security</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/oauth-redirect-security</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Wed, 18 Nov 2026 12:00:00 GMT</pubDate>
      <description>The redirect back from an OAuth provider is where sign-ins get attacked. Runnable Node code for each attack and its fix: login CSRF and the state parameter (and the ways state is done wrong), the return URL as an open redirect, mix-up attacks that get past state and PKCE and the iss parameter that stops them (RFC 9207), and why redirect_uri must match exactly.</description>
      <category>OAuth</category>
      <category>Security</category>
      <category>JavaScript</category>
      <category>ASP.NET Core</category>
    </item>
    <item>
      <title>PKCE Explained: The Attacks It Stops, and Why Confidential Clients Need It Too</title>
      <link>https://the-seasoned-programmer.com/blog/pkce-explained</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/pkce-explained</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 16 Nov 2026 12:00:00 GMT</pubDate>
      <description>PKCE (RFC 7636) proves that whoever redeems an OAuth authorization code is whoever asked for it. Runnable Node code for three attacks: a stolen code redeemed by another app, a stolen code injected into the attacker's own sign-in (which a client secret doesn't stop), and the downgrade that strips PKCE out. Plus what the server must check, the client mistakes to avoid, and how PKCE, state and nonce fit together.</description>
      <category>OAuth</category>
      <category>Security</category>
      <category>JavaScript</category>
      <category>ASP.NET Core</category>
    </item>
    <item>
      <title>Nonces Explained: One Word, Four Different Rules</title>
      <link>https://the-seasoned-programmer.com/blog/nonce-explained</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/nonce-explained</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 16 Nov 2026 12:00:00 GMT</pubDate>
      <description>A nonce is a “number used once”, but AES-GCM, CBC, ECDSA, Content Security Policy, OpenID Connect and replay protection each need something different from it: unique, unpredictable, secret, or remembered. Runnable Node code for each, including a forged AES-GCM message from two that shared a nonce, a PIN recovered through predictable CBC IVs, and a CSP nonce tested in Chrome.</description>
      <category>Cryptography</category>
      <category>Security</category>
      <category>OAuth</category>
      <category>JavaScript</category>
    </item>
    <item>
      <title>The Backend for Frontend (BFF) Pattern: Keeping OAuth Tokens Out of the Browser</title>
      <link>https://the-seasoned-programmer.com/blog/backend-for-frontend-bff</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/backend-for-frontend-bff</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Sat, 14 Nov 2026 12:00:00 GMT</pubDate>
      <description>RFC 10017 now ranks the backend for frontend first among the ways to run OAuth for a browser app: a small server holds the tokens and the browser gets only an HttpOnly cookie. A tested ASP.NET Core BFF with an Angular app: sign-in as a confidential client, the cookie settings, the CSRF header, a proxy allowlist, refresh that happens once however many tabs ask, logout both ways, and the one attack a BFF can't stop.</description>
      <category>OAuth</category>
      <category>Security</category>
      <category>ASP.NET Core</category>
      <category>Angular</category>
      <category>Architecture</category>
    </item>
    <item>
      <title>DPoP Explained: Binding Access Tokens to a Key (RFC 9449), and What It Doesn't Stop</title>
      <link>https://the-seasoned-programmer.com/blog/dpop-sender-constrained-tokens</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/dpop-sender-constrained-tokens</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Sat, 14 Nov 2026 12:00:00 GMT</pubDate>
      <description>A stolen bearer token works for whoever holds it. DPoP binds tokens to a key pair the client holds, so a copy is useless without the private key. A tested Web Crypto client with a non-extractable key, a token endpoint and API in Node.js, every way to misuse a proof, server nonces, the pre-generated proof attack that injected script can still pull off, the htu trap behind a proxy, and what it costs per request.</description>
      <category>OAuth</category>
      <category>JWT</category>
      <category>Security</category>
      <category>Web Crypto</category>
      <category>Node.js</category>
    </item>
    <item>
      <title>Running a jti Replay Store in Production: Redis Failover, Eviction, and ECS</title>
      <link>https://the-seasoned-programmer.com/blog/jti-replay-store-production</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/jti-replay-store-production</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Fri, 13 Nov 2026 12:00:00 GMT</pubDate>
      <description>A Redis replay store that works on one machine can accept replayed tokens in production. We measured how: ElastiCache’s default eviction policy let 96,689 of 100,000 replays through, and a 7-second network partition lost 9,027 jtis the API had already accepted. The fixes, measured too: noeviction, min-replicas-to-write, WAIT, fail-fast clients, hash tags in cluster mode, and revocation that reaches every ECS task. Tested on Redis 8.2 and Valkey 8.1, with validated Terraform.</description>
      <category>JWT</category>
      <category>jti</category>
      <category>Redis</category>
      <category>Valkey</category>
      <category>AWS</category>
      <category>ECS</category>
      <category>Architecture</category>
      <category>Security</category>
    </item>
    <item>
      <title>Elliptic Curves for Programmers: The Math Behind ES256 and Ed25519, and How the PS3 Key Leaked</title>
      <link>https://the-seasoned-programmer.com/blog/elliptic-curves-es256-ed25519</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/elliptic-curves-es256-ed25519</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Fri, 13 Nov 2026 12:00:00 GMT</pubDate>
      <description>Elliptic-curve cryptography from the ground up, in runnable code: point addition on a curve you can draw, P-256 and ECDSA (ES256) written from scratch and checked against Node, the PS3 hack that recovered a private key from two signatures sharing a nonce, Ed25519 built byte for byte to RFC 8032 and why its nonces are deterministic, and what it all means for JWTs.</description>
      <category>Cryptography</category>
      <category>Elliptic Curves</category>
      <category>Math</category>
      <category>Security</category>
      <category>JWT</category>
      <category>JavaScript</category>
    </item>
    <item>
      <title>Unicode and UTF-8 Explained: Why &quot;👍🏽&quot;.length Is 4</title>
      <link>https://the-seasoned-programmer.com/blog/unicode-utf8-explained</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/unicode-utf8-explained</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Fri, 13 Nov 2026 12:00:00 GMT</pubDate>
      <description>Code points, UTF-8 and UTF-16 built by hand and checked against every one of Unicode's 1,112,064 scalar values, surrogate pairs, normalization (two é's that aren't equal), and grapheme clusters. Then three bugs, with fixes: truncating mid-character, Base64 of non-ASCII text, and lookalike usernames.</description>
      <category>Unicode</category>
      <category>Encoding</category>
      <category>JavaScript</category>
      <category>Security</category>
      <category>Strings</category>
    </item>
    <item>
      <title>How Git Stores Your Code: SHA-1, zlib, Packfiles, and a Repository Built by Hand</title>
      <link>https://the-seasoned-programmer.com/blog/how-git-stores-code</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/how-git-stores-code</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Fri, 13 Nov 2026 12:00:00 GMT</pubDate>
      <description>What's really inside .git, rebuilt from scratch and checked against real Git: blobs, trees and commits named by their SHA-1, zlib on disk, a repository written without running Git that git fsck accepts, a packfile reader that rebuilds every delta, why 10 MB of history packs into 127 KB, and the move from SHA-1 to SHA-256.</description>
      <category>Git</category>
      <category>Hashing</category>
      <category>Compression</category>
      <category>Data Structures</category>
      <category>JavaScript</category>
    </item>
    <item>
      <title>How Compression Works: Entropy, Huffman, LZ77, and the Math Behind ZIP</title>
      <link>https://the-seasoned-programmer.com/blog/how-compression-works</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/how-compression-works</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Thu, 12 Nov 2026 12:00:00 GMT</pubDate>
      <description>Lossless compression from Shannon to Zstandard, with code you can run: what entropy really limits, why no compressor can shrink every file, Huffman coding and LZ77 written from scratch, what's inside a .gz file, gzip vs Brotli vs Zstandard measured on real files, compression in the browser, and the CRIME-style attack that recovers a secret from encrypted lengths alone.</description>
      <category>Compression</category>
      <category>Algorithms</category>
      <category>Math</category>
      <category>Security</category>
      <category>JavaScript</category>
    </item>
    <item>
      <title>What the jti Claim Is Actually For: JWT Replay Protection and Revocation</title>
      <link>https://the-seasoned-programmer.com/blog/jti-replay-revocation</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/jti-replay-revocation</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Thu, 12 Nov 2026 12:00:00 GMT</pubDate>
      <description>The jti (JWT ID) claim does nothing on its own. How to use it to stop replayed tokens and revoke tokens early: an atomic Redis replay store that accepted 1 of 50 concurrent copies where check-then-set accepted all 50, why you must verify before you remember, which tokens should be single-use, how unique a jti must be, and a denylist that cleans itself up. Tested with jose, Redis 8.2, and PostgreSQL 18.</description>
      <category>JWT</category>
      <category>jti</category>
      <category>Security</category>
      <category>Redis</category>
      <category>PostgreSQL</category>
      <category>JavaScript</category>
    </item>
    <item>
      <title>The Mechanics of JWS: Signing Input, Signature Formats, and the Serializations Nobody Mentions</title>
      <link>https://the-seasoned-programmer.com/blog/jws-mechanics</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/jws-mechanics</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Wed, 11 Nov 2026 12:00:00 GMT</pubDate>
      <description>What a JWS signature actually covers, how HS256, RS256, PS256, ES256, and Ed25519 verify with nothing but Web Crypto, why one token can have several valid spellings, and the parts of RFC 7515 most developers never see: JSON serialization, multiple signatures, detached and unencoded payloads, and crit.</description>
      <category>JWS</category>
      <category>JWT</category>
      <category>Signatures</category>
      <category>JOSE</category>
      <category>Security</category>
      <category>JavaScript</category>
    </item>
    <item>
      <title>Primes and Remainders: How Modular Arithmetic Locks and Unlocks RSA</title>
      <link>https://the-seasoned-programmer.com/blog/rsa-primes-modular-arithmetic</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/rsa-primes-modular-arithmetic</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Tue, 10 Nov 2026 12:00:00 GMT</pubDate>
      <description>The number theory behind RSA, one tested step at a time: clock arithmetic, square-and-multiply, Euler's theorem (the reason decryption gives the message back), modular inverses, finding 1024-bit primes with Miller-Rabin, a 2048-bit key built from scratch that OpenSSL accepts, what's inside a real private key file, and the attacks that break RSA when the math is used carelessly.</description>
      <category>RSA</category>
      <category>Cryptography</category>
      <category>Math</category>
      <category>JavaScript</category>
      <category>Python</category>
      <category>Security</category>
    </item>
    <item>
      <title>Blue-Green Deployments vs. Canary Releases: Database Schema Migration Strategies at Scale</title>
      <link>https://the-seasoned-programmer.com/blog/blue-green-canary-migrations</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/blue-green-canary-migrations</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Tue, 10 Nov 2026 12:00:00 GMT</pubDate>
      <description>Blue-green and canary releases both run two versions of your code against one database, and that's where zero-downtime deploys usually fail. We measure the PostgreSQL lock queue that turns a 3 ms ALTER TABLE into an outage, which DDL blocks writes on a 2-million-row table, a column rename done with expand/contract while v1 and v2 serve traffic, batched backfills, and a canary controller that rolled back a bad release after about 23 errors instead of about 2,100.</description>
      <category>Architecture</category>
      <category>PostgreSQL</category>
      <category>DevOps</category>
      <category>Databases</category>
      <category>Node.js</category>
    </item>
    <item>
      <title>From SSL to TLS 1.3: How the Protocol Works, Why It Kept Breaking, and Why You Should Always Use the Latest</title>
      <link>https://the-seasoned-programmer.com/blog/ssl-tls-evolution</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/ssl-tls-evolution</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Tue, 10 Nov 2026 12:00:00 GMT</pubDate>
      <description>Thirty years of SSL and TLS in one tested guide: every version, the attacks that retired it (POODLE, BEAST, FREAK, DROWN and more), how the TLS 1.3 handshake works, and why it matters. We measure 1 round trip instead of 2, decrypt a recorded TLS 1.2 session with a stolen key, catch the downgrade sentinel, and negotiate post-quantum key exchange with nginx, Node.js, Python, and Go.</description>
      <category>Security</category>
      <category>TLS</category>
      <category>Cryptography</category>
      <category>Networking</category>
      <category>Architecture</category>
    </item>
    <item>
      <title>Predictable Chaos: Why Math.random() Breaks Security and How CSPRNGs Work</title>
      <link>https://the-seasoned-programmer.com/blog/csprng-vs-math-random</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/csprng-vs-math-random</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Tue, 10 Nov 2026 12:00:00 GMT</pubDate>
      <description>Math.random() and Python's random module are fast, statistically excellent, and completely predictable. We clone Python's Mersenne Twister from 156 session tokens and V8's Math.random() from 4 values, then follow secure randomness from CPU noise through the Linux kernel to the safe API in Node.js, Python, Go, Java, C#, and the shell.</description>
      <category>Security</category>
      <category>Cryptography</category>
      <category>Node.js</category>
      <category>Python</category>
      <category>Linux</category>
    </item>
    <item>
      <title>The Cryptographic Blueprint: Generating the Private-Key Assertion</title>
      <link>https://the-seasoned-programmer.com/blog/client-assertion-blueprint</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/client-assertion-blueprint</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Tue, 10 Nov 2026 12:00:00 GMT</pubDate>
      <description>How a private_key_jwt client assertion is built byte by byte, with no JWT library: the header and claims, base64url, the exact signing input, the kid thumbprint, and the ECDSA trap where DER signatures fail. Tested code in Node.js, OpenSSL shell, Python, Go, and Java, checked against a real token endpoint.</description>
      <category>OAuth</category>
      <category>JWT</category>
      <category>Cryptography</category>
      <category>Security</category>
      <category>Node.js</category>
    </item>
    <item>
      <title>The Death of the Shared Secret: Private Key JWT Client Authentication (RFC 7523)</title>
      <link>https://the-seasoned-programmer.com/blog/private-key-jwt</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/private-key-jwt</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Tue, 10 Nov 2026 12:00:00 GMT</pubDate>
      <description>Why a static client_secret is the weakest link between services, and how private_key_jwt replaces it: the client signs a short-lived assertion with its own private key, and the server checks it with the public key. A tested client and token endpoint in Node.js, the RFC 10070 audience rule that fixed a 2025 vulnerability, key rotation, and ES256 vs. RS256 measured.</description>
      <category>OAuth</category>
      <category>JWT</category>
      <category>Security</category>
      <category>Architecture</category>
      <category>Node.js</category>
    </item>
    <item>
      <title>Thread-Safe Refresh Token Rotation: One Refresh per Client, the Same Successor on Every Server</title>
      <link>https://the-seasoned-programmer.com/blog/thread-safe-rtr</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/thread-safe-rtr</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Tue, 10 Nov 2026 12:00:00 GMT</pubDate>
      <description>Refresh token rotation breaks when two threads, tabs, or server instances use the same refresh token. How to make it thread-safe on both sides: a double-checked token source in Go and Java that refreshes once for 10,000 threads, and an idempotent token endpoint that gives every concurrent request the same successor. Tested with Go's race detector, Java virtual threads, and three server instances on PostgreSQL 18.</description>
      <category>OAuth</category>
      <category>Security</category>
      <category>Concurrency</category>
      <category>Go</category>
      <category>Java</category>
      <category>PostgreSQL</category>
    </item>
    <item>
      <title>How Database B-Trees Work, and Which Key to Use: Integers, UUIDs, GUIDs, or Strings</title>
      <link>https://the-seasoned-programmer.com/blog/btree-keys</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/btree-keys</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Tue, 10 Nov 2026 12:00:00 GMT</pubDate>
      <description>How a B-tree index finds a row in three page reads, why the order and size of your keys decide how big and fast it is, and what that means for bigint, UUID v4, UUID v7, GUIDs, and string keys. Measured on PostgreSQL 18 and MySQL 8.4 with 1 and 5 million rows.</description>
      <category>Databases</category>
      <category>PostgreSQL</category>
      <category>MySQL</category>
      <category>UUID</category>
      <category>Performance</category>
      <category>Architecture</category>
    </item>
    <item>
      <title>The Myth of the Short UUID: Encoding Math vs. String Length</title>
      <link>https://the-seasoned-programmer.com/blog/short-uuid-myth</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/short-uuid-myth</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Tue, 10 Nov 2026 12:00:00 GMT</pubDate>
      <description>Why a 22-character Base62 short UUID is exactly as unique as the 36-character original, why cutting characters off is not, and how to store short IDs: a tested BigInt implementation, birthday-paradox numbers at 10 billion IDs, and what PostgreSQL 18 and MySQL 8.4 do with short IDs stored as text.</description>
      <category>UUID</category>
      <category>Encoding</category>
      <category>Databases</category>
      <category>PostgreSQL</category>
      <category>MySQL</category>
      <category>JavaScript</category>
    </item>
    <item>
      <title>Refresh Token Rotation (RTR) by RFC 9700: What the Spec Requires, and a Tested Token Endpoint</title>
      <link>https://the-seasoned-programmer.com/blog/refresh-token-rotation</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/refresh-token-rotation</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Tue, 10 Nov 2026 12:00:00 GMT</pubDate>
      <description>What the OAuth 2.0 Security Best Current Practice (RFC 9700) actually requires for refresh tokens, how rotation detects a stolen token, and a token endpoint that implements it: RFC 6749 requests and errors, client and scope binding, and three ways to handle a reused token, tested against concurrent refreshes, lost responses, and replays on PostgreSQL 18.</description>
      <category>OAuth</category>
      <category>Security</category>
      <category>JWT</category>
      <category>PostgreSQL</category>
      <category>Node.js</category>
    </item>
    <item>
      <title>Short-Lived Access Tokens, Long-Lived Refresh Tokens: A Tested System Design</title>
      <link>https://the-seasoned-programmer.com/blog/access-refresh-tokens</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/access-refresh-tokens</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>Why access tokens should live 5 to 15 minutes and refresh tokens days or weeks, and how to build it: opaque refresh tokens stored as hashes, rotation with reuse detection, one atomic SQL statement per refresh, a grace period for concurrent refreshes, a client that refreshes once, and where refresh tokens should live. Tested on PostgreSQL 18 with jose.</description>
      <category>JWT</category>
      <category>OAuth</category>
      <category>Security</category>
      <category>Architecture</category>
      <category>PostgreSQL</category>
      <category>Node.js</category>
    </item>
    <item>
      <title>Rate Limiting Inside Redis: An Atomic Lua Script That Decides in Single-Digit Microseconds</title>
      <link>https://the-seasoned-programmer.com/blog/redis-lua-rate-limiter</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/redis-lua-rate-limiter</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>A Redis Lua script that makes the whole rate-limit decision atomically inside Redis: several limits, request costs, Retry-After and RateLimit headers, self-expiring keys. Measured on Redis 8.2: 4 to 8 microseconds of server time per decision, where those microseconds go, why GET-then-SET let through 17 times the limit and WATCH/MULTI managed a quarter of the throughput, and how to run it in production.</description>
      <category>Redis</category>
      <category>Lua</category>
      <category>Rate Limiting</category>
      <category>Performance</category>
      <category>Architecture</category>
      <category>Node.js</category>
    </item>
    <item>
      <title>A Thread-Safe Token Bucket Without Timers: Lazy Refill, Lock-Free GCRA, and 8 Bytes per Client</title>
      <link>https://the-seasoned-programmer.com/blog/lazy-token-bucket</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/lazy-token-bucket</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>How to implement a rate limiter that refills tokens from timestamps instead of a background timer: a mutex token bucket, a lock-free GCRA in one atomic int64, and a sharded per-client map that cleans itself up, in Go, with Java and Python ports. Measured against timer-based refill and golang.org/x/time/rate, and tested with the race detector.</description>
      <category>Rate Limiting</category>
      <category>Go</category>
      <category>Concurrency</category>
      <category>Java</category>
      <category>Python</category>
      <category>Performance</category>
    </item>
    <item>
      <title>Token Bucket Math: How Rate Limiters Allow Bursts but Enforce a Long-Term Average</title>
      <link>https://the-seasoned-programmer.com/blog/token-bucket-math</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/token-bucket-math</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>The mathematics of rate limiting with bursts: why a token bucket never lets more than b + r·t requests through in any span of time, how fast the average converges to r, how long a burst lasts, why GCRA is the same limiter in one number, what fixed and sliding windows really allow, how to enforce a strict cap per hour, and a tested Redis implementation.</description>
      <category>Rate Limiting</category>
      <category>Algorithms</category>
      <category>APIs</category>
      <category>Redis</category>
      <category>JavaScript</category>
      <category>Math</category>
    </item>
    <item>
      <title>Waterfall vs. Agile in the Codebase: Release Branches and Merge Hell vs. Trunk-Based Development and Feature Flags</title>
      <link>https://the-seasoned-programmer.com/blog/waterfall-vs-trunk</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/waterfall-vs-trunk</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>How Waterfall delivery shows up in the code, as long-lived release branches, merge-hell debt, and big-bang schema migrations, and how Agile teams replace them with trunk-based development, CI/CD pipelines, expand/contract migrations, and runtime feature flags. With a merge simulation in real Git, PostgreSQL 18 lock measurements, and tested code.</description>
      <category>Agile</category>
      <category>Git</category>
      <category>CI/CD</category>
      <category>Feature Flags</category>
      <category>PostgreSQL</category>
      <category>DevOps</category>
    </item>
    <item>
      <title>Data Serialization Trade-Offs: JSON vs. YAML vs. XML on Size, Memory, Readability, Strictness, and Speed</title>
      <link>https://the-seasoned-programmer.com/blog/serialization-tradeoffs</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/serialization-tradeoffs</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>A measured comparison of JSON, YAML, and XML: file size before and after gzip, memory used when parsing, human readability, how strictly each parser treats malformed input (22 cases across 9 parsers), and parse and serialize speed in Node.js and Python, with tested code for strict parsing, fast YAML loading, and streaming large files.</description>
      <category>JSON</category>
      <category>YAML</category>
      <category>XML</category>
      <category>Performance</category>
      <category>Python</category>
      <category>JavaScript</category>
    </item>
    <item>
      <title>JWS vs. JWE: When to Sign and When to Encrypt JSON Web Tokens</title>
      <link>https://the-seasoned-programmer.com/blog/jws-vs-jwe</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/jws-vs-jwe</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>A practical guide to choosing between signed (JWS) and encrypted (JWE) JSON Web Tokens, both, or neither: what each protects, who holds which key, measured sizes and speeds for ten common setups, what JWS-only libraries do with a JWE, and tested code for access tokens, encrypted session cookies, nested tokens, and opaque tokens.</description>
      <category>JWT</category>
      <category>JWS</category>
      <category>JWE</category>
      <category>Security</category>
      <category>Architecture</category>
      <category>JavaScript</category>
    </item>
    <item>
      <title>The Mechanics of JWE: Key Wrapping, Authenticated Encryption, and Five-Part Tokens</title>
      <link>https://the-seasoned-programmer.com/blog/jwe-mechanics</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/jwe-mechanics</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>What each of a JWE’s five parts holds, how “alg” delivers a one-time content key (RSA-OAEP, AES Key Wrap, ECDH-ES with Concat KDF, dir, PBES2) and how “enc” encrypts and authenticates the claims (AES-GCM, AES-CBC with HMAC), decrypted by hand with Web Crypto, plus why an encrypted token isn’t a signed one.</description>
      <category>JWE</category>
      <category>JWT</category>
      <category>Encryption</category>
      <category>JOSE</category>
      <category>Security</category>
      <category>JavaScript</category>
    </item>
    <item>
      <title>Base64 Explained: Its History, How the Encoding Works, and Where It’s Used</title>
      <link>https://the-seasoned-programmer.com/blog/base64-explained</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/base64-explained</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>Where Base64 came from (uuencode, PEM and MIME email), how three bytes become four characters, padding and the base64url variant, where it’s used today (JWTs, data URIs, PEM keys, Basic auth), why seven decoders disagree on the same input, and the mistakes to avoid. Tested in Node.js, Python, Chrome and the shell.</description>
      <category>Base64</category>
      <category>Encoding</category>
      <category>JavaScript</category>
      <category>Python</category>
      <category>Web</category>
      <category>History</category>
    </item>
    <item>
      <title>Slow on Purpose, Fast by Design: Password Hashing (bcrypt, Argon2) vs. Integrity Checksums (BLAKE3, SHA-256)</title>
      <link>https://the-seasoned-programmer.com/blog/password-vs-integrity-hashing</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/password-vs-integrity-hashing</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>Why password hashes must be slow, and checksums must be fast, with measured numbers: guesses per second for SHA-256, PBKDF2, bcrypt, and Argon2id; throughput for CRC-32C, xxHash, SHA-256, and BLAKE3; and tested code for storing passwords, checksumming files, and detecting tampering in a database.</description>
      <category>Hashing</category>
      <category>Passwords</category>
      <category>Argon2</category>
      <category>bcrypt</category>
      <category>BLAKE3</category>
      <category>Databases</category>
    </item>
    <item>
      <title>YAML’s Unexpected Behavior: The Norway Problem and Remote Code Execution Through Deserialization</title>
      <link>https://the-seasoned-programmer.com/blog/yaml-norway-problem</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/yaml-norway-problem</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>Why the country code NO becomes false, 3.10 becomes 3.1, and 0755 becomes 493, tested across eight YAML parsers in Python, JavaScript, Ruby, Go, and Kubernetes; and how YAML tags turned config files into remote code execution in PyYAML, Ruby, SnakeYAML, and js-yaml, with the safe way to load YAML in each language.</description>
      <category>YAML</category>
      <category>Security</category>
      <category>Deserialization</category>
      <category>Python</category>
      <category>JavaScript</category>
      <category>Kubernetes</category>
    </item>
    <item>
      <title>The Developer’s Guide to Planning Poker: The Math and Consensus Model Behind the Cards</title>
      <link>https://the-seasoned-programmer.com/blog/planning-poker-math</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/planning-poker-math</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>Why planning poker uses a Fibonacci-like deck, why everyone reveals at once, and why a team’s estimate beats one person’s, explained with the math (ratios, log-normal errors, the wisdom of crowds, anchoring) and simulations you can run, plus a consensus rule and a Monte Carlo release forecast.</description>
      <category>Agile</category>
      <category>Scrum</category>
      <category>Estimation</category>
      <category>Planning poker</category>
      <category>Statistics</category>
      <category>JavaScript</category>
    </item>
    <item>
      <title>BLAKE3 Deep Dive: How Its Merkle Tree Enables Parallel Hashing Across Threads and SIMD Lanes</title>
      <link>https://the-seasoned-programmer.com/blog/blake3-merkle-tree</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/blake3-merkle-tree</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>How BLAKE3 works inside: the compression function, 1 KiB chunks, the binary Merkle tree and its flags, the chaining-value stack used for streaming, and how the tree lets one hash use every CPU thread and every SIMD lane. Built from scratch in JavaScript, checked against the official implementation, and benchmarked against SHA-256.</description>
      <category>BLAKE3</category>
      <category>Hashing</category>
      <category>Merkle tree</category>
      <category>SIMD</category>
      <category>Performance</category>
      <category>Cryptography</category>
    </item>
    <item>
      <title>Understanding Symmetric vs. Asymmetric Encryption: A Deep Dive into AES, ChaCha20, and RSA</title>
      <link>https://the-seasoned-programmer.com/blog/symmetric-vs-asymmetric-encryption</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/symmetric-vs-asymmetric-encryption</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>How AES, ChaCha20 and RSA actually work, with each one built from scratch in JavaScript and checked against the official test vectors; why asymmetric encryption is thousands of times slower; how hybrid encryption and key agreement combine the two; key sizes; and what quantum computers change.</description>
      <category>Encryption</category>
      <category>AES</category>
      <category>ChaCha20</category>
      <category>RSA</category>
      <category>Cryptography</category>
      <category>JavaScript</category>
    </item>
    <item>
      <title>Symmetric Encryption in JavaScript: Implementing AES and ChaCha20 Securely</title>
      <link>https://the-seasoned-programmer.com/blog/symmetric-encryption-javascript</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/symmetric-encryption-javascript</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:00:00 GMT</pubDate>
      <description>How to encrypt data in the browser and Node.js with AES-GCM and ChaCha20-Poly1305: working Web Crypto and node:crypto code, nonces and why reusing one is fatal, keys from passwords, large files, measured speeds, and the mistakes that break real systems.</description>
      <category>Encryption</category>
      <category>JavaScript</category>
      <category>Web Crypto</category>
      <category>AES</category>
      <category>ChaCha20</category>
      <category>Security</category>
    </item>
    <item>
      <title>Choosing the Right UUID: When to Use v4 vs. Time-Sorted v7 in Modern Databases</title>
      <link>https://the-seasoned-programmer.com/blog/uuid-v4-vs-v7</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/uuid-v4-vs-v7</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Sun, 08 Nov 2026 12:00:00 GMT</pubDate>
      <description>What's inside a v4 and a v7 UUID, why random keys slow down B-tree indexes (with a 5-million-row PostgreSQL benchmark), how to generate v7 in JavaScript, Python, .NET, PostgreSQL, MySQL and SQL Server, and when v4 is still the right choice.</description>
      <category>UUID</category>
      <category>Databases</category>
      <category>PostgreSQL</category>
      <category>MySQL</category>
      <category>SQL Server</category>
      <category>Performance</category>
    </item>
    <item>
      <title>The Ultimate Guide to JWT Architecture: Structure, Verification, and Common Flaws</title>
      <link>https://the-seasoned-programmer.com/blog/jwt-architecture-guide</link>
      <guid isPermaLink="true">https://the-seasoned-programmer.com/blog/jwt-architecture-guide</guid>
      <dc:creator>Mark J McNeely</dc:creator>
      <pubDate>Sun, 08 Nov 2026 12:00:00 GMT</pubDate>
      <description>How a JSON Web Token is built, how a server should verify one step by step, how keys and JWKS fit into a real system, and the flaws (alg none, algorithm confusion, weak secrets, kid and jku injection) that keep breaking JWT implementations.</description>
      <category>JWT</category>
      <category>Security</category>
      <category>Authentication</category>
      <category>OAuth 2.0</category>
      <category>Node.js</category>
      <category>Python</category>
    </item>
  </channel>
</rss>
