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. Request and send data securely through PHP
QtWS25 Last Chance

Request and send data securely through PHP

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 300 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.
  • C Offline
    C Offline
    Csonytii
    wrote on 29 Oct 2018, 11:55 last edited by Csonytii
    #1

    Hello

    In a project we make both web and desktop application. They are redundant because the web application requested later and i don't want to delete my code.
    So we don't want to mess with each other and we want to use the same password database.( They are using Laravel framework)

    My initial thought was i send a QCryptographicHashed Username and password and then the Framework just send to comparison, But that won't work because i cant compare when they make a new user(and Vice Versa).

    After some search i find Network Access Manager which can get me stuff from the given link but sending plain text not the best idea but i don't that Cryptic is a viable options here.

    My Questions are
    How can i securely send username+password to their Framework to process data,
    And how their Framework can send me the dbuser+dbpassword securely?(Mysql)

    Regards:
    Cs'
    (sorry for my not proper English )

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRonin
      wrote on 29 Oct 2018, 13:48 last edited by
      #2

      QNetworkAccessManager can already handle secure connections. It uses OpenSSL.

      As a side note, it's unsafe, for obvious reasons, to pre-compute the hash of the password. They should be hashed only by the system that manages the database. all other systems should send the passwords on an SSL protected connection unaltered

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      C 1 Reply Last reply 29 Oct 2018, 15:28
      3
      • V VRonin
        29 Oct 2018, 13:48

        QNetworkAccessManager can already handle secure connections. It uses OpenSSL.

        As a side note, it's unsafe, for obvious reasons, to pre-compute the hash of the password. They should be hashed only by the system that manages the database. all other systems should send the passwords on an SSL protected connection unaltered

        C Offline
        C Offline
        Csonytii
        wrote on 29 Oct 2018, 15:28 last edited by Csonytii
        #3

        @VRonin
        Thank you for your reply.
        i have another question, in our context (w/ Laravel Framework) how we should do it properly?
        i mean the Laravel using bcrypt with its own salting. So our problem that we need to sync different methods on the DB (and its our main problem for weeks now )

        edit: ( i wasnt exact... Laravel is on the same site as the DB we want to manage but its use its on DB for the password (mysql))

        1 Reply Last reply
        0

        3/3

        29 Oct 2018, 15:28

        • Login

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