-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move from buffer-equal-constant-time
to timingSafeEqual
#46
Comments
This is causing a failed build on my production project due to multiple libraries depending on jsonwebtoken or jws, that ultimately depend on this library. |
Would prefer a NodeJS dependency free solution that dose not depend on So i would just rather inline the solution and build a more generic solution that works on any typed array. function timingEq(a, b) {
if (a.length !== b.length) return false
let c = 0
for (let i = 0, len = a.length; i < len; i++) c |= a[i] ^ b[i]
return !c
} |
Hi.
Reason of this proposal is described here: Shinobi #452. Please also see note here: Publish deprecation notice #6
The text was updated successfully, but these errors were encountered: