@yaniv14
same password hashed at different time gives me different resultsfirst line Tools::hash(123456) outputs : $2y$10$vf9b9Y92f7ELhhOTcI2GfOzrK1SfAIylPU8ySGy5F41JxREkoCj3Gsecond line Tools::hash(123456); outputs:$2y$10$P3kdjPytuLHPZ3iEmjBxoezfOckOnIFB8cPj7ghUaltl7/bqUwrWO

the result of password_hash actually contains two parts - hash and salt. Salt is randomly generated each time you call this function, that’s the reason why the result is different each time. In order to verify password, simply call function password_verify, with plain text password and a result of pasword_hash function: