简体   繁体   中英

C# mvc web api. Convert json plain text to cipher text over http

I am developing a mobile backend application which is written in c# mvc web api's. I would like to know the best secure mechanism to transmit json data. Is there any issue with sending data in json format, or should i convert that json to som encrypted format? My actual data will look like this.

{
"id":2130,
"location":"florida"
}

my question is, is there any way to convert this json to some other format which can be decrypted at mobile side say like as folllows

{
"zxs#%df":"dfd5d2f",
"fgfd5f5gdd":"fdgfdg699"
}

or as a plain text like

"dfsdfs^^dfsd^%$$fsdfsd*fs6556df$6"

which can be converted to actual json data

Use HTTPS.

It is unlikely you can create our own protocol with comparable security.

Why don't you use tokenization and pass tokens?

you can refere and check with http://jwt.io/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM