Code Explainers

Code explainers tagged #timing-safe-comparison

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