UNPKG

unixcrypt-browser

Version:

Node.js implementation of Unixcrypt, specifically SHA-256 and SHA-512

11 lines 408 B
/** * string, buffer comparison in length-constant time * @see https://codahale.com/a-lesson-in-timing-attacks/ * * @param {string} a - string from input * @param {string} b - string to compare with `a` * @return {boolean} true if strings match */ export declare function timingSafeEqual(a: string, b: string): boolean; export default timingSafeEqual; //# sourceMappingURL=timing-safe-compare.d.ts.map