Merhaba temada giriş bölümünde md5 yerine hash kodlu giriş yapmayı nasıl sağlayabilirim yardımcı olurmusunuz

Örnek bu kod ile : $2y$10$CXIDBjMYoNeWYJ55Lxi17eaoG2FTIO1X9I96npMqJsc goV1qRVNOa

 if (isset($_POST["loginol"])) {
        $email  =$_POST["mail"];
         $password   =md5($_POST["password"]);
          $kullanicivarmi= $vt->prepare("select * from uye where email=? && password=?");
          $kullanicivarmi->execute(array($email,$password));
          $row= $kullanicivarmi->rowCount();
          if ($row>0) {
            $_SESSION["mail"]=$email;
            $_SESSION["password"]=$password;
            echo' <META HTTP-EQUIV="Refresh" content="2;URL=loginoldu.php/"> ' ;
          }else{
           echo' <META HTTP-EQUIV="Refresh" content="2;URL=login.php">' ;
          }
      }