Encrypt msg payload


I'm doing an Http 'put' into my NodeRed app. The source is JavaScript on an html page. I've encrypted the 'body' with Crypto-JS, but now I see that's pretty old and has some vulnerabilities. Is there another encryption method that can be implemented in client-side JavaScript, and decrypted in NodeRed?

I did some googling, but I'm not sure what I'm looking for.


Use https then it will be encrypted automatically.