Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/proc/tools/deps/crypto.ts>timingSafeEqual

A better way to work with processes in Deno.
Go to Latest
function timingSafeEqual
Re-export
import { timingSafeEqual } from "https://deno.land/x/proc@0.20.35/tools/deps/crypto.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