Tag Archives: php

Why does PHP’s password_hash change each time the same data 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. Take a simple password like “mypassword1”. We can… Read More »