This package has been deprecated

Author message:

Last version of Node without crypto.timingSafeEqual was v6.6.0

timing-safe-strcmp

1.0.0 • Public • Published

timing-safe-strcmp

Compare any strings in timing-safe manner

(referenceString, actualString) ⇒ bool

Compares two strings/buffers for equality in timing-safe manner

Kind: Main export

Param Description
referenceString (string|Buffer)
actualString (string|Buffer)

.compareConstantLengthBuffers(buf1, buf2) => bool

Compare two buffers of equal length in timing-safe manner. Will use crypto.timingSafeEqual if possible, otherwise custom function.

Readme

Keywords

none

Package Sidebar

Install

npm i timing-safe-strcmp

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • ginden