I\'m using PHP\'s crypt function for password hashing/encryption, but I don\'t think I am doing it right because \"nathan12\" and \"nathan123\" both allow me to log
The standard DES-based
crypt()[...] only uses the first eight characters ofstr, so longer strings that start with the same eight characters will generate the same result (when the same salt is used).
source
Use a salt that starts with $ to use something other than DES. See the crypt() documentation for details.