Refactored the methods into a HashPassword class

Refactored the methods into a HashPassword class for better code
organization when using OOP in projects.

$pwObj = new HashPassword();
$hashedPasswd = $pwObj->password_hash($passwd, PASSWORD_BCRYPT, ["cost" => 10]);
echo $hashedPasswd;