js_of_ocaml icon indicating copy to clipboard operation
js_of_ocaml copied to clipboard

[FEATURE REQUEST] WebCrypto support

Open adrien-n opened this issue 6 years ago • 4 comments

I would like to use WebCrypto but there is currently no binding for it (it's still RC but it has been in browsers for several years). Proper bindings will probably depend upon #940 because basically all of the API returns futures. The JS API also uses quite a lot of strings for identification so there's some room for a friendlier API if wanted.

edit: I've started to use the API directly without proper bindings but I figured I should also create a ticket for tracking purposes.

adrien-n avatar Dec 11 '19 21:12 adrien-n

Contributions are welcome. Note that theses bindings could also easily live outside the js_of_ocaml project.

hhugo avatar Dec 12 '19 04:12 hhugo

OK. I'll try to start that way.

BTW, it would probably be useful to expand the documentation to mention such external libs (including ones for promises). I'll try to draft something in the coming days.

adrien-n avatar Dec 12 '19 10:12 adrien-n

https://github.com/ocsigen/js_of_ocaml/issues/1217

hhugo avatar Jan 11 '22 09:01 hhugo

It's not jsoo-style API but just in case brr has support for webcrypto.

dbuenzli avatar Jan 11 '22 10:01 dbuenzli

Let's just document external bindings in #1217

hhugo avatar Mar 28 '24 15:03 hhugo