@ansugroup/timing-safe-equal
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

@ansugroup/timing-safe-equal

Nodejs, Browser

A copy package of safe-compare rewritten with TypeScript for internal use in Ansugroup. crypto.timingSafeEqual for browser.

Install

yarn add @ansugroup/timing-safe-equal

Usage

import timingSafeEqual from "@ansugroup/timing-safe-equal";

timingSafeEqual("hello world", "hello world"); // -> true

timingSafeEqual("hello", "not hello"); // -> false
timingSafeEqual("hello foo", "hello bar"); // -> false

License

MIT

Package Sidebar

Install

npm i @ansugroup/timing-safe-equal

Weekly Downloads

255

Version

0.1.3

License

MIT

Unpacked Size

4.6 kB

Total Files

7

Last publish

Collaborators

  • pierreneter