Skip to main content
C
CodeUtil

Blog

Practical guides for data formatting, encoding, and developer workflows.

All articles

Search by topic, tool, or keyword.

9 min

Email Regex: Why It Is Harder Than You Think

I've written probably 20 different email regex patterns in my career. Most of them were wrong. Here's what I learned after years of getting it wrong, and the patterns that actually work.

Regex Testerregexemailvalidation
15 min

Regex Finally Clicked for Me - Here Is How

I avoided regex for years. They looked like keyboard smashes and made my head hurt. Then something clicked and now I use them daily. Here's the guide I wish existed when I started.

Regex Testerregexpatternstext processing
12 min

Secure Password Hashing - MD5, SHA-256, and Beyond

Learn why password hashing matters, why MD5 is broken for security, how SHA-256 differs, and why bcrypt and Argon2 are the right choice for storing passwords. Understand rainbow tables, salting, and modern best practices.

Hash Generatorsecurityhashingpasswordscryptography
14 min

JWT Tokens Explained - Authentication for Modern Web Apps

Understand JSON Web Tokens (JWT) from the ground up: how they work, their three-part structure, when to use them, security best practices, refresh token strategies, and common implementation mistakes to avoid.

JWT Decoderjwtauthenticationsecurityweb development
12 min

Code Minification: Best Practices for Production

After years of optimizing builds at Šikulovi s.r.o., I have developed a battle-tested approach to minification. Here is my complete guide to build tool integration, source maps, and avoiding common pitfalls.

Minifierminificationperformanceweb development
12 min

Debugging APIs with Base64 and JWT Decoding

Master API debugging by learning to decode Base64 payloads and inspect JWT tokens. Troubleshoot authentication issues, read encoded error messages, and understand what your APIs are actually sending and receiving.

JWT Decoderapidebuggingjwtbase64authentication
14 min

HTML Entity Encoding - Preventing XSS Attacks

Learn how HTML entity encoding protects your web applications from Cross-Site Scripting (XSS) attacks. Understand character encoding, when to encode user input, framework auto-escaping, and common vulnerabilities developers miss.

HTML Encoder/Decodersecurityhtmlxssweb developmentencoding
8 min

URL Slugs: Best Practices for SEO-Friendly URLs

I used to ignore URL slugs until I saw the click-through rate difference between /post?id=12345 and /how-to-write-better-code. Now I obsess over them. Here is what I have learned about slugs, SEO, and why every character matters.

Slug Generatorseourlsweb development
9 min

String Escaping Guide: JSON, HTML, URL, and More

After debugging my third XSS vulnerability caused by improper escaping, I finally sat down and learned the rules properly. Here is my complete guide to escaping strings for JSON, HTML, URLs, and more - with the gotchas that bit me.

String Escape/Unescapestringsencodingsecurityweb development