[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Crypto](https://evolu.dev/docs/api-reference/common/Crypto) › TimingSafeEqual

```ts
type TimingSafeEqual = (a: Uint8Array, b: Uint8Array) => boolean;
```

Defined in: [packages/common/src/Crypto.ts:257](https://github.com/evoluhq/evolu/blob/e7144e2bbe9069362b62dec1b64a8aa922b8f1b0/packages/common/src/Crypto.ts#L257)

Performs a timing-safe comparison of two Uint8Arrays. Returns true if they
are equal, false otherwise. Takes constant time regardless of where the
arrays differ.

## See

https://nodejs.org/api/crypto.html#cryptotimingsafeequala-b