Hello everybody
I have a set of data that I want to save in the database, how do I encrypt it to protect it before sending it to the server .
B4X:
Dim Products As List
Products.Initialize
Do While RS.NextRow
'
Dim Items As Map = CreateMap("item_id" : RS.GetInt("id"), _
"item_quantity" : RS.GetInt("qty"), "item_price" : RS.GetDouble("price"), _
"item_name" : RS.GetString("name"))'
Products.Add(Items)
Loop
RS.Close
Dim JSON As JSONGenerator
JSON.Initialize2(Products)
Dim JSONstring As String
JSONstring = JSON.ToString
What is the best way to encrypt it and how? can anyone help me .
You haven't provided enough information to make an informed response. What server are you sending the JSON to? Is it one you're developing? Is it an existing server (in which case they probably have an existing protocol)?
If you're sending the JSON via HTTPS then it's already encrypted, why bother encrypting it again? We'll need some more specifics from you if you need additional help.
You haven't provided enough information to make an informed response. What server are you sending the JSON to? Is it one you're developing? Is it an existing server (in which case they probably have an existing protocol)?
If you're sending the JSON via HTTPS then it's already encrypted, why bother encrypting it again? We'll need some more specifics from you if you need additional help.
Thanks @Jeffrey Cameron, you gave me some info
What server are you sending the JSON to? Is it one you're developing? Is it an existing server (in which case they probably have an existing protocol)?
Every part needs clarification
PHP file
Yes, send to https
So, when do I need encryption? (e.g. AES Encryption)
If you're writing both ends, you get to decide If you're communicating HTTPS then whatever you're sending to/from your server is already encrypted via SSL. If you're just sending your bowling league scores back and forth that is probably sufficient. If you're sending credit card payment information then you'll probably want to add one or more layers of encryption.