I think it's cool that web browsers have built in APIs for doing #cryptography stuff without needing to worry about pulling in dependencies.
https://www.keithbartholomew.com/blog/posts/2024-01-22-webcrypto-diffie-hellman/
@fabrice.capyloon.org What's missing?
@fabrice.capyloon.org Boggles my mind that streaming (and often binary data) isn't priority number one for all APIs that deal with data. Probably the webcrypto stuff was more motivated by stuff like JWT or some corpo auth scheme than encrypted files though
I think you're correct about the use cases. Streaming support was also not that easy to spec at the time, because JS Streams were not a thing yet. Today we could hook crypto algorithm in a developer.mozilla.org/en-US/docs/W... !
TransformStream - Web APIs | M...
@fabrice.capyloon.org I hope we get it eventually!
Some algorithms, and the lack of proper streaming encryption/decryption was a blocker for media & files support.