Timestamp Converter Jun 29, 2026

ISO 8601, Unix Timestamps, and the "Local Time in Database" Bug — A Practical Format Selection Guide

ISO 8601 UTC and Unix timestamps represent the same moments but encode different assumptions — and the most pervasive timestamp bug is storing DATETIME without timezone information, which breaks when servers change timezones, when DST transitions create missing hours, or when users in different timezones submit local timestamps. Here's the practical guide: when to use each format, why ISO 8601 UTC sorts lexicographically, and the date-only vs datetime semantic distinction that causes birthday-display bugs.

URL Encoder/Decoder Jun 29, 2026

Why OAuth redirect_uri Errors Are Almost Always Encoding Problems — and How to Fix Them

OAuth redirect_uri errors are almost always URL encoding mismatches — the encoded URI sent in the authorization request must exactly match the registered URI, character for character. Here's the correct encoding for redirect_uri, why Base64 state parameters break CSRF checks when + decodes as space, the five different array encoding formats that different frameworks use, and the URL parser inconsistencies that enable SSRF attacks.

UUID Generator Jun 29, 2026

The Real UUID Collision Risk Isn't Random — It's Container Snapshots and Broken Random Number Generators

UUID v4's random collision probability is negligibly small — the real risk is deterministic duplicates from containers cloned from the same snapshot sharing PRNG state, language-level UUID libraries using Math.random() instead of CSPRNG, or UUID v1's clock sequence exhaustion when clocks go backwards repeatedly. Here's the container snapshot duplicate problem, the seeding vulnerabilities by language runtime, and why a unique constraint on UUID primary keys is essential defensive programming.

Regex Tester Jun 24, 2026

Missing a Regex Anchor Is a Bug — Why ^, $, and \b Work Differently Than You Think in Multiline Mode

The difference between a regex that matches "digits" and one that matches "only digits" is anchor characters — and missing anchors are why input validators accept strings they should reject. Here's how ^ and $ change behavior in multiline mode (a security-relevant surprise), why \b word boundaries break on Unicode text, the \z vs $ distinction for absolute string-end matching in Python, and why unanchored authorization patterns misclassify URLs.

Random String Generator Jun 24, 2026

Why the Same Random Token Breaks in Some Contexts — Hex vs Base64url vs Standard Base64 Explained

URL-safe Base64, hex, and standard Base64 are different representations of the same randomness — and the wrong choice causes "invalid token" errors when + and / characters in standard Base64 get interpreted as spaces and path separators in URLs. Here's a decision table for token format by context, why prefixed tokens (sk_live_, ghp_) enable security scanner detection of committed secrets, and why you should store only the SHA-256 hash of tokens, never the raw token.

REST API Checker Jun 24, 2026

The Most Revealing API Tests Aren't Successful Requests — A Systematic Error-Path Testing Guide

The most revealing API tests aren't successful requests — they're deliberately malformed, missing, or boundary-case inputs that expose implementation quality and security posture. Here's the systematic error-path testing discipline: what good vs weak APIs do with missing fields, why type coercion masks bugs, what oversized inputs reveal about injection surface and length validation, and how the alg:none JWT attack tests a fundamental authentication vulnerability.

Number Base Converter Jun 24, 2026

How to Read Hex Like a Debugger — Magic Bytes, Memory Dumps, and Why Byte Order Matters

Hexadecimal is a window into how computers represent data at the byte level — and once you can read it naturally, you start seeing structure in things that previously looked like noise. Here's how magic bytes identify file formats (JPEG starts with FF D8 FF, PDF with %PDF-, ZIP with PK), what hex reveals in network captures and memory dumps, the endianness problem that causes little-endian hex to read backwards, and the famous debug sentinel values like 0xDEADBEEF and 0xCAFEBABE.

Password Generator Jun 23, 2026

Why a Password Generator Using Math.random() Is Less Secure Than Its Length Suggests — Entropy, CSPRNG, and What to Check

A password generator using Math.random() is not cryptographically secure — a password's effective entropy is limited by the randomness quality of the generator, not just its length and character set. Here's what password entropy actually measures (bits of theoretical guessing difficulty), why crypto.getRandomValues() is categorically different from Math.random(), why length increases entropy faster than adding special characters, and how Diceware achieves verifiable physical randomness.

JSON Formatter Jun 23, 2026

Why JSON Doesn't Allow Comments — and the JSON5/JSONC Variants That Do (and Why They Break Standard Parsers)

JSON5 and JSONC add comments and trailing commas to JSON — and if you've ever tried to add a // comment to a tsconfig.json and wondered why VS Code allows it but JSON.parse() doesn't, you've encountered the JSON variant ecosystem. Here's why JSON has no comments by design, the three overlapping "JSON with comments" specifications, why standard parsers reject JSONC content, and the preprocessing approaches for handling these variants in automation.

JSON Diff Jun 23, 2026

Why Two Identical JSON Objects Look Different in a Diff — Normalization, Canonical Form, and the Array Problem

Two JSON objects with identical data can fail equality checks because of different key ordering — a false difference that corrupts any text-level diff. Here's the three normalization problems (key ordering, formatting, numeric representation), RFC 8785 canonical JSON for digital signatures, the practical parse-sort-serialize workflow for normalization before diffing, and why arrays create a harder normalization problem with no universal solution.

JSON Unescape & Cleaner Jun 23, 2026

Why JSON.parse() Fails for Large Files — Streaming Parsers, JSON Lines, and When to Use Each

Standard JSON.parse() requires the complete document before returning anything — which fails for large files that exceed memory and real-time streaming APIs that never "finish." Here's how streaming JSON parsers work (event-driven, token-by-token), JSON Lines as a simpler alternative that works with standard parsers, the specific use cases where streaming is necessary vs over-engineering, and when high-volume data transfer argues for protobuf instead of JSON entirely.

JWT Decoder Jun 23, 2026

JWT "Stateless" Is a Half-Truth — The Microservices Patterns That Account for the Other Half

JWTs are "stateless" — but deciding whether to trust the claims may require state, and confusing the two leads to architectural mistakes. Here's the microservices JWT validation dilemma (every service validates vs gateway-validates-services-trust), why encoding authorization roles in JWTs creates a stale-claims window problem, why the aud claim validation is commonly skipped (and why that's a vulnerability), and the mTLS + JWT separation of concerns that modern service meshes use.