I am using jwcrypto to encrypt data using public key. I have gone through the documentation and the JWE class only takes plaintext as payload.
But I have a dictionary to encrypt as a payload.
I can convert the dictionary to json and encrypt the payload but the one who decrypt my data will be expecting dictionary after decription.
Is there anyway I can encrypt dictionary as payload.