Code Explainers
Code explainers tagged #timing-safe-comparison
typescript
import { createParamDecorator, ExecutionContext, UnauthorizedException,
A signed-cookie param decorator in NestJS
custom-decorators
hmac
timing-safe-comparison
Advanced
8 steps
python
import secrets from fastapi import Depends, FastAPI, HTTPException, Security, status from fastapi.security import APIKeyHeader
API key authentication as a FastAPI dependency
authentication
dependency-injection
api-keys
Intermediate
8 steps
php
<?php namespace App\Http\Middleware;
Verifying GitHub webhook signatures in Laravel
middleware
hmac
webhooks
Intermediate
5 steps
ruby
require "openssl" require "base64" module WebhookSignature
Signing and verifying webhooks in Ruby
hmac
cryptography
webhooks
Intermediate
7 steps
php
<?php final class CsrfGuard {
Building a per-form CSRF guard in PHP
csrf
security
sessions
Intermediate
8 steps