Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to ensure security from Asp.net REST service and Qt application?
Forum Updated to NodeBB v4.3 + New Features

How to ensure security from Asp.net REST service and Qt application?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xalisonx
    wrote on 14 Dec 2015, 08:41 last edited by
    #1

    What is the best way to ensure security in response to a REST Asp.net and a Qt application? I want that the service reply may not be decoded.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stephane78
      wrote on 14 Dec 2015, 11:24 last edited by
      #2

      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) ....

      1 Reply Last reply
      1
      • S Offline
        S Offline
        stephane78
        wrote on 14 Dec 2015, 11:34 last edited by
        #3

        PS:if you compile your self Qt and if you use https requests you must link Qt with openssl.

        X 1 Reply Last reply 14 Dec 2015, 14:16
        1
        • S stephane78
          14 Dec 2015, 11:34

          PS:if you compile your self Qt and if you use https requests you must link Qt with openssl.

          X Offline
          X Offline
          xalisonx
          wrote on 14 Dec 2015, 14:16 last edited by
          #4

          @stephane78 Hi and thankyou! But I don't have possibility to use https. I might use some crypt algorithm?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            stephane78
            wrote on 14 Dec 2015, 14:22 last edited by
            #5

            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....

            1 Reply Last reply
            0
            • S Offline
              S Offline
              stephane78
              wrote on 14 Dec 2015, 14:26 last edited by
              #6

              sorry, you can encrypt/decrypt strings or files with openssl(on every OS) or advapi32.lib(under windows) if you cannot use https...

              1 Reply Last reply
              0
              • S Offline
                S Offline
                stephane78
                wrote on 14 Dec 2015, 14:40 last edited by
                #7

                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 Reply Last reply
                0

                1/7

                14 Dec 2015, 08:41

                • Login

                • Login or register to search.
                1 out of 7
                • First post
                  1/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved