Skip to content

TypeScript API / laikacms/auth / hashesEqual

Function: hashesEqual() ​

ts
function hashesEqual(a, b): boolean;

Constant-time comparison of two hex-encoded hashes, to avoid timing side-channels.

Parameters ​

ParameterType
astring
bstring

Returns ​

boolean

Released under the MIT License.