Episode 818 minutes

Official Package Ecosystem & Built-In Crypto (SHA-256, HMAC, JWT)

Use zero-dependency SHA-256, HMAC-SHA256, Base64URL, constant-time compare, and the 10 official HADID packages.

Lesson Video Coming Soon

This episode's HD lesson video will appear directly in this player once published. Meanwhile, run and modify the live HADID v0.13 code lab right below!

Learning Objectives

  • Sign and verify payloads with crypto_sha256, crypto_hmac_sha256, and crypto_const_eq
  • Build HS256 token flows using base64url_encode and base64url_decode
  • Install official packages with hadid add (hadid-jwt, hadid-cache, hadid-rate-limit, hadid-webhook, hadid-logger)

Architecture Summary

HADID v0.13 includes a pure ISO C17 crypto runtime (crypto_sha256, crypto_hmac_sha256, base64url_encode, crypto_const_eq) powering 10 official Apache-2.0 packages including hadid-jwt, hadid-cache, hadid-rate-limit, hadid-webhook, and hadid-logger.

Live HADID v0.13 Code Lab

LIVE COMPILER

Episode 8 · Interactive Lab

Live Native C17 · v0.13.0
main.had

Run with Ctrl / ⌘ + Enter

Executes on the real HADID v0.13.0 Linux compiler inside a network-isolated container (async/await, closures, Generic fn<T> + where, Query<T>, loop-fused lambdas, html_render, crypto, SQLite :memory:, and full EN/TR syntax). Use the local `hadid` CLI for disk SQLite, live WebSocket/HTTP servers, and native AOT binaries.

Sign in with Digital HAT ID to earn Code Lab (+25 XP), Quiz (+50 XP), badges, and certificates.Sign In

Knowledge Check

1. Why should crypto_const_eq be used instead of == when verifying JWT or webhook signatures?