I wanna use argon2id(in php) for hashing my users password, But the problem is argon2id don't get static data
For example when you write:
echo password_hash("Hello", PASSWORD_ARGON2ID);
echo password_hash("Hello", PASSWORD_ARGON2ID);
The results is:
$argon2id$v=19$m=2048,t=4,p=3$Qowhgdak+Khdoae9#dhsowowhqj020euddwi0OwhsJa $argon2id$v=19$m=2048,t=4,p=3$pshapHzuaOwghdoeaiauw9hsyz72iqna029eh3opadjdk
And you can see when you call hash, argon2 give you another data per call
My question is how to use this for hash password?
How to fix that? Use salt option? But php is not suggested this
Note: we hash passwords and for login and others we hash the user entered password And we compare the two
Argon2 is the best for hash but I don't Kwon how to use it