Authenticate - CPasswordHelper

Hi.

Why are the two values different?

$p1 = CPasswordHelper::hashPassword($this->password);
$p2 = CPasswordHelper::hashPassword($this->password);

That’s expected because password hash contains salt. That is to prevent usage of “rainbow tables” attack technique.

1 Like