fermyon / spin-js-sdk

https://developer.fermyon.com/spin/javascript-components
Apache License 2.0
52 stars 18 forks source link

Add `crypto.createHmac` and `crypto.createHash` #100

Closed radu-matei closed 1 year ago

radu-matei commented 1 year ago

These functions are extremely useful for computing signatures for payloads.

karthik2804 commented 1 year ago

Would the digest method from subtleCrypto implementation on the browser work for the use cases of createHash?

https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest

Or would the update and digest methods on the node API be preferred?