Php 使用Bcrypt登录(4);

Php 使用Bcrypt登录(4);,php,mysql,blowfish,Php,Mysql,Blowfish,我正在尝试为我的网站创建一个安全的登录系统,下面是我得到的。。还有我收到的错误 <?php try { $dbh = new PDO("mysql:host=localhost;dbname=****", "****", "****"); } catch(PDOException $e) { echo $e->getMessage(); } $query = "SELECT * FROM `users` WHERE LOWER(`username`) = :usernam

我正在尝试为我的网站创建一个安全的登录系统,下面是我得到的。。还有我收到的错误

<?php

try {
$dbh = new PDO("mysql:host=localhost;dbname=****", "****", "****");
} catch(PDOException $e) {
    echo $e->getMessage();
}

$query = "SELECT * FROM `users` WHERE LOWER(`username`) = :username";
$stmt = $dbh->prepare($query);
$stmt->bindValue(':username', strtolower($_POST['username']));
$stmt->execute();
if ($stmt->rowCount() == 1) {
$row = $stmt->fetch(PDO::FETCH_ASSOC);
require ('includes/blowfish.class.php');
//$bcrypt = crypt(md5(md5("P5IAO".$_POST['password']."AR19W")));
$bcrypt = new Bcrypt(4);
if ($bcrypt->verify($_POST['password'], $row['password'])) {
    echo "Logged in!";
}
} else {
echo 'User NOT found.';
}
?>


我得到这个错误
PHP致命错误:未捕获异常“exception”,消息是“bcrypt在此安装中不受支持”。看见http://php.net/crypt“

错误消息非常简单,谢谢您的输入。当我按照它的指示去做的时候,它会引导我去使用crypt API,我对使用这种安全的方法非常陌生,如果能给我一个指导,让我知道我是多么的初学者,我将不胜感激。我已经解决了这个问题,似乎我需要用我的网络托管提供商将我的PHP更新到5.3。