Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/oak/deps.ts>timingSafeEqual

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function timingSafeEqual
import { timingSafeEqual } from "https://deno.land/x/oak@v12.1.0/deps.ts";

Compare to array buffers or data views in a way that timing based attacks cannot gain information about the platform.

Parameters

a: ArrayBufferView | ArrayBufferLike | DataView
b: ArrayBufferView | ArrayBufferLike | DataView

Returns

boolean