QCryptographicHash General Questions



  • I have a database that is actually used by my php app, and i would like to make a Qt application that will also use this database. My problem is that as i saw in the documentation Qt only supports SHA (and md4-5) algorithms but i was used to use php's password_hash("the password", PASSWORD_DEFAULT) which uses BCRYPT algorithm with a random salt. So i have 2 problems

    • 1st the algorithm is not supported

    • 2nd Qt doesn't have a random salt method

    My php db is not live so it's not important if i change algorithm but i would like to know which one is the safest to use on live implementations, and also if i can use a constant has a salt and if i should add my salt to the string before getting hashed or after.


  • Lifetime Qt Champion

    Hi,

    The QCA module might be what you are looking for.

    Hope it helps



  • @SGaist You are literally everywhere, thanks alot once again that is exactly what i was looking for!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.