Category Archives: Uncategorized

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 »

Decision Trees for Linguists Pt. 2 – Information Gain

Entropy and Information Gain Continued from Part 1. Let’s start with some definitions. Tree: A hierarchical structure of nodes and connections between those nodes (branches) with parent-child relationships. Child nodes have parent nodes, which in turn may have their own parents nodes. The highest node is the root node. Decision tree: a flow-chart-like structure where… Read More »