Reputation: 1810
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
Upvotes: 0
Views: 421
Reputation: 508
Why don't you use tokenization and pass tokens?
you can refere and check with http://jwt.io/
Upvotes: 1
Reputation: 100547
Use HTTPS.
It is unlikely you can create our own protocol with comparable security.
Upvotes: 3