How to ensure security from Asp.net REST service and Qt application?
-
wrote on 14 Dec 2015, 11:24 last edited by
Hi,
I suppose you do http requests from your Qt application (I have made a Qt software that communicate with a php rest api and I use http requests and responses).You must do https requests to have security (the url of the request must be : "https://www.....) and the response will be on https too. and if you are under linux you must allow the tcp port 443 in the iptable rule of your firewall.....(you don't need that in windows) ....
-
wrote on 14 Dec 2015, 11:34 last edited by
PS:if you compile your self Qt and if you use https requests you must link Qt with openssl.
-
PS:if you compile your self Qt and if you use https requests you must link Qt with openssl.
wrote on 14 Dec 2015, 14:16 last edited by@stephane78 Hi and thankyou! But I don't have possibility to use https. I might use some crypt algorithm?
-
wrote on 14 Dec 2015, 14:22 last edited by
https requests and response are encrypted.I don't know how to do otherwise.or perhaps you must encrypt your response from your rest api with openssl or crypt32.lib and decrypt your response in your Qt software.but the more eaysiest way is to use https....
-
wrote on 14 Dec 2015, 14:26 last edited by
sorry, you can encrypt/decrypt strings or files with openssl(on every OS) or advapi32.lib(under windows) if you cannot use https...
-
wrote on 14 Dec 2015, 14:40 last edited by
I don't know if the c# (on the server side) can use these two libraries but the c++ can.with openssl you can encrypt/decrypt strings with aes256 for example(look at stack overflow-google), and the microsoft win32 library advapi32.lib will use the rsa algorithm.
1/7