Tag Archives: example

Why does PHP’s password_hash() output change each time the same password is hashed?

Nota bene: the hash() algorithm in this article has been slightly altered so that the code below doesn’t work. This is intentional: this code should not be used for secure hashing as it is merely a demonstration of why the same password can generate a different hash. The hash for a password should change each… Read More »