hash($password, $data['salt']); return $data; } public function hash($password, $salt) { return hash('sha256', $password . $salt); } }