worker crypto
i wast trying to implement api to in cloudflare worker to generate deviceId but my function uses crypto library and i don't find the same function in cloudflare crypto:
can anyone help
4 Replies
As per inline comment, did you try: https://developers.cloudflare.com/workers/runtime-apis/web-crypto/ ?
Web Crypto · Cloudflare Workers docs
The Web Crypto API provides a set of low-level functions for common cryptographic tasks. The Workers Runtime implements the full surface of this API, …
not generating the correct deviceId
here is equivalant code in python
Would
crypto.randomUUID()
suffice?nah
i have to generate valid deviceId since it's being used in api