import { SecurityUtils } from "https://deno.land/x/mandarinets@v2.3.2/security-core/utils/securityUtils.ts";
Contains all the util methods used by the security core
Static Methods
compare(a: , b: ): boolean
| string
| number[]
| ArrayBuffer
| Uint8Array
| string
| number[]
| ArrayBuffer
| Uint8Array
Compare two strings, Uint8Arrays, ArrayBuffers, or arrays of numbers in a way that avoids timing based attacks on the comparisons on the values.
The function will return true
if the values match, or false
, if they
do not match.
compareArrayBuffer(a: ArrayBuffer, b: ArrayBuffer): boolean