String comparison in length constant time
npm install compare-timing-safe

> String comparison in length constant time
Works in node and in the browser.
Node version uses crypto module.
String, buffer comparison in length-constant time
Example
``js`
import timingSafeEqual from 'compare-timing-safe'
const input = 'a'
const compareWith = 'bbbbbbbb'
timingSafeEqual(input, compareWith)
//> false
Parameters
| parameter | type | description |
| --------- | -------------- | ------------------------------------ |
| a | String, Buffer | String or buffer from input |b
| | String, Buffer | String or buffer to compare with a |
Returns Boolean, true if strings match
Requires nodejs.
`sh`
$ npm install compare-timing-safe
`sh``
$ npm test
Unlicense