Open jeremymeng opened 2 years ago
@jeremymeng the two are not equivalent as the computeSha256Hmac
puts the key
into a Buffer
which is not necessary in my case. core-util would have to expose a different method that does not put the key into a Buffer
for this to be workable from Notification Hubs.
@mpodwysocki yes I saw the slight difference and was hoping it could be reconciled...interesting to see that some scenarios require a Buffer while others just work with strings.
Hi @jeremymeng, we deeply appreciate your input into this project. Regrettably, this issue has remained unresolved for over 2 years and inactive for 30 days, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.
still relevant
instead of having its own https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/notification-hubs/src/auth/hmacSha256.ts
we could use
computeSha256Hmac
from core-utilhttps://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-util/src/sha256.ts