I seem to get an error on line 5 of this function, no matter what I do. I repeatedly get a "parse error" on that specific line. What am I missing?
Code: Select all
function encryptPW($strPass) {
$arrTable = array(0 => 84, 105, 99, 47, 84, 111, 99);
$strEncrypted = "0x";
for($lngX=0; $lngX < strlen($strPass); $lngX++) {
$strHex = dechex(ord(strstr($strPass, $lngX+1, 1)) ~ $arrTable($lngX % 7)));
if(("&H" + $strHex) < 16) { $strEncrypted .= "0";
}
return strtolower($strEncrypted);
}