Workers supports the Web Crypto APIs. Your equivalents there are `crypto.subtle.encrypt()` and `cryp
Workers supports the Web Crypto APIs. Your equivalents there are
However the Web Crypto API does not support all of the algorithms available on NodeJS.
So it depends on which algorithm you're after but take a look at the docs:
https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt
crypto.subtle.encrypt() and crypto.subtle.decrypt().However the Web Crypto API does not support all of the algorithms available on NodeJS.
So it depends on which algorithm you're after but take a look at the docs:
https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt
MDN Web Docs
The encrypt() method of the SubtleCrypto interface encrypts data.








