How to encrypt API response data in a MERN stack application with TypeScript backend and React frontend?
I am building a MERN stack application with a TypeScript backend and a React frontend. I want to encrypt the data sent in the API responses so that it appears encrypted when the API is hit directly, but is correctly decrypted and displayed on the frontend.