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

std/crypto/mod.ts>timingSafeEqual

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function timingSafeEqual
Re-export
import { timingSafeEqual } from "https://deno.land/std@0.190.0/crypto/mod.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