Add cryptographic operations with libsodium
Check how mush of the WebCrypto API can be implemented with it.
Not much. libsodium is very much built around the principle of "there's only one way to do it" so there's only one way to hash, one way to encrypt, etc. WebCrypto on the other hand is a smorgasbord of hashes, ciphers, and so on.
I was thinking about having something like a minimal WebCrypto of sorts. Not too keen on wrapping OpenSSL :-P
Supporting only SHA-256 and SHA-512 (but not SHA-384) in digest() could work but, excepting HMAC, there's nothing in libsodium that's suitable for encrypt/decrypt(), sign/verify(), or key management.
If you could get over the Rust hump, you can lift deno's webcrypto implementation almost verbatim. :p
If you could get over the Rust hump, you can lift deno's webcrypto implementation almost verbatim. :p
Maaaaybe :-)