Base64 Encoding: What It Actually Does and When to Use It
Base64 shows up everywhere from data URIs to JWTs, but it's often misunderstood. Here's a practical rundown of what it is, when it helps, and the gotchas that trip people up....
Tutorials, tips, and insights for modern developers
Base64 shows up everywhere from data URIs to JWTs, but it's often misunderstood. Here's a practical rundown of what it is, when it helps, and the gotchas that trip people up....
Comparing two JSON objects sounds trivial until key ordering, floating-point drift, and nested arrays get involved. Here's how to do it properly, with the gotchas that trip people up....
CSS formatting is the boring thing that quietly saves you hours. Here's when it matters, the gotchas that trip people up, and a worked example you can copy....
Bcrypt is still one of the best defaults for storing passwords. Here's how it works, when to use it, the gotchas that trip people up, and a short worked example....
Escaping HTML entities is one of those small tasks that quietly prevents broken markup and XSS holes. Here's what it actually does, when you need it, and the gotchas that trip people up....
Bcrypt is still one of the best default choices for hashing passwords. Here's how it works, when to use it, the gotchas that bite people, and a worked example....
A practical look at SHA-256 hashing — what it actually does, where it fits in real systems, the mistakes people make with it, and a quick worked example you can run today....
HTML escaping is one of those things you either get right quietly or get wrong loudly — usually via an XSS bug. Here's what it actually does, when to reach for it, and the gotchas that trip people up....
Minified JSON is great for machines and miserable for humans. Here's how and when to format it, the gotchas that trip people up, and a quick worked example....
A practical guide to bcrypt for storing passwords — how it works, when to use it, the gotchas that bite people, and a short worked example....
Stripping whitespace from JSON is trivial, but knowing when it helps — and when it doesn't — saves you from premature optimisation and broken APIs. Here's the practical guide....
Minified JSON is great for the wire and terrible for humans. Here's how and when to format it, the gotchas that trip people up, and a quick worked example....