Unable to encrypt the data using the Crypto method in UXP

I am using the UXP API and I am trying to encrypt some data using the Window.crypto API, I am able to generate the random value but I want to encrypt the data in-form of token just like nodejs.

Hi all,
I am also facing the same issue. I want to encrypt a string using window.crypto module. I can see that in this crypto module there are only two methods i.e. getRandomValues and randomUUID. I do not see any method to encrypt the data.
Is there any way to encrypt data?

The methods available in the Crypto module of UXP are in line with what is supported on the Web. UXP doesn’t support SubtleCrypto or other low-level cryptographic services like that of node.