I am developing an API using PHP (Codeigniter) and Phils RESTserver. I am creating a hash using crypt() with the password and the salt.
The problem is that the hash that is the result of the crypt() algorithm is different on my local machine and on the server.
It works fine locally but not on the server (to short). I know the password and the salt are the same because I tried them hardcoded to.
Hash from local machine:
$2a$10$g6J7CUjJvB0JpTd7UcrowePEbqp/oBmZEpd7vS.5HFYx38f08Tb/a
Hash from the server:
$2jkP2/LlC/H6
What can be wrong?
(server is running centos 5).