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.
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?