0

これが私が得たものです:

$username = "username";
$password = "password";
$companyID = "companyID";

function encodeAES($u, $p, $c){
    $original = "$u,$p,$c";
    $key = "myKey";
    $IV = "00000000";
    return rtrim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $original, MCRYPT_MODE_CBC, $IV)), "\0\3");
}

print encodeAES($username, $password, $companyID);

エラーは次のとおりです。

Fatal error: Call to undefined function mcrypt_encrypt() on line 9
4

1 に答える 1