Timing-Safe Comparison in PHP — When hash_equals Is and Isn't Enough
hash_equals leaks length: 1.55x faster for mismatch. Verified. Plus other traps + fixes. Complete timing-safe comparison guide.Continue reading on Level Up Coding »
Coding tutorials and news. The developer homepage gitconnected.com && skilled.dev && levelup.dev - Medium
Verified RSS / Atom URL
https://levelup.gitconnected.com/feed
hash_equals leaks length: 1.55x faster for mismatch. Verified. Plus other traps + fixes. Complete timing-safe comparison guide.Continue reading on Level Up Coding »
Ask Claude for a JSON object and, with nothing else constraining the response, you can still get a trailing comma, a missing field, or a string sitting where an integer was promised. Even careful prom...
The Problem Nobody PatchesIn August 2026, Simon Willison documented a class of attacks he called “delayed prompt injection via persistent context” — where an attacker plants a payload not in a prompt,...
Frontier AI: Claude Code and Codex Still Use grep. Why?We have ASTs, LSPs, graphs, embeddings, code indexes. Yet Claude Code or Codex still use grep, rg, find, ls, cat. ???Just today, I saw my Claude...
One fixed the bug, one hallucinated a fix, and one rewrote the entire architecture. Here is what happened.Continue reading on Level Up Coding »
Processing multiple files in parallel tends to make an application a lot faster. But there’s certainly a point where “parallel” turns into “send everything at once and hope infrastructure doesn’t expl...
With the recent emergence of very capable local models like QWEN-3.8 (thanks Alibaba!), and increasing costs/reduced token usage coming from paid for cloud models. I’ve been trying to find a way to ut...
How extreme tail events fan out and how they can potentially be mitigated at pre-training.Today, I will be dissecting the paper Safe Start: Configuring Optimization Algorithms for Decision-Making unde...
Most of the articles about Spring and Thread Safety contains some version of this sentence:“A request thread can observe a partially updated of some object X”.Here can is important as it signifies som...
Microsoft, Anthropic, and LangGraph all describe the same five ways to coordinate AI agents under different names. Here’s a guide on each…Continue reading on Level Up Coding »