A
A
alexeykorchagin2017-08-29 19:22:49
Encryption
alexeykorchagin, 2017-08-29 19:22:49

C# Possible to add encryption in POST - request to server?

Now we are developing a SDK on unity that sends a request to the server (via the WWW class) and receives json in response with a link to the image and other data. Is it possible to encrypt this request in such a way as to minimize the chance of forging it and there were no public keys in the client?
Or maybe it's worth using an obfuscator for the client so that these keys are private? If so, which one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SolidMinus, 2017-08-29
@SolidMinus

UPD: I didn’t read the bottom part, I didn’t notice that there were no keys.
Google vernam cipher is a one-time stream cipher.
~~~~~~~
Use RSA.
Encrypt the array with the request before sending it with the server's public key, encode it in base64 and send the encoded abracadabra, decode the received base64 on the server and decrypt it with your private key.
Google what is asymmetric encryption and how to use RSA (raw implementation, or crypto-frameworks) in C #, and how to use it in the language in which the server is.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question