Go to Latest
function timingSafeEqual
import { timingSafeEqual } from "https://deno.land/std@0.152.0/crypto/timing_safe_equal.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