Compare any strings in timing-safe manner
Compares two strings/buffers for equality in timing-safe manner
Kind: Main export
Param | Description |
---|---|
referenceString | `(string |
actualString | `(string |
Compare two buffers of equal length in timing-safe manner. Will use crypto.timingSafeEqual
if possible, otherwise custom function.