I should do Encrypt and Decrypt this json object i dont know how to do what should i take pls help me out...
i should take two textboxes one for encrypt and another for decrypt in ecrypt txtbox i should enter this json object how to do it..
how to enter json object into a textbox pls help me
{
id:,
mobile:,
name :"",
lname:"",
date:"",
gender:"",
salary:"",
location:""
}
Naimish MakwanaPosted Mar 15, 2023, 5:02 AM
Hello Jaya,
First, you need to convert the
jsonObjectto a JSON string. Use Newtonsoft.Json package for that.Then you can use the
AesCryptoServiceProviderclass to encrypt and decrypt the string.example of how you can encrypt the JSON string:
To decrypt the encrypted string, you can use the following code:
Thanks
Naimish Makwana
Jaya PrakashPosted Mar 15, 2023, 9:00 AM
getting error like this i tried but none worked out...
Amit MohantyPosted Mar 15, 2023, 5:09 AM
Check this
How to use