QCryptographicHash General Questions
Solved
General and Desktop
-
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.
-
-