Want to encrypt user input and server ouput

when user send a message through rasa open source chatbot that plain text, i have to encrypt and send to server and in server end i have to decrypt. and other than that the response message i have to encrypt and send to chatbot in user side i have to decrypt and i deploy my project in server and i am using IIS( Internet Information Services). so give me method how can i implement this and get a end to end data encryption security. and also tell me the point where it hit when user type some message , so that i could encrypt that hit point and provide some decryption code while hitting output side

please give response immediately