Jump to content

[Erledigt]Fatal Error: Call To Undefined Function Mcrypt_Decrypt()


Recommended Posts

hallo,
ich war soweit fertig und wollte heute abend producte einpfelgen etc.
als ich heute morgen die letzten änderungen machte gab es keine probeleme auch heute vormittag konnte ich noch normal zugreifen.
nun bekomme ich die fehler meldung
Fatal error: Call to undefined function mcrypt_decrypt() in /var/www/XXX/XXX/httpdocs/classes/Rijndael.php on line 68

das sagt mir gar nichts. hier der code ab zeile 54:

 

edit:

erledigt...
war ein prob beim hoster.

  public function decrypt($ciphertext)
    {
        if (ini_get('mbstring.func_overload') & 2) {
            $length = intval(mb_substr($ciphertext, -6, 6, ini_get('default_charset')));
            $ciphertext = mb_substr($ciphertext, 0, -6, ini_get('default_charset'));
            return mb_substr(
                mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $this->_key, base64_decode($ciphertext), MCRYPT_MODE_ECB, $this->_iv),
                0,
                $length,
                ini_get('default_charset')
            );
        } else {
            $length = intval(substr($ciphertext, -6));
            $ciphertext = substr($ciphertext, 0, -6);
            return substr(mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $this->_key, base64_decode($ciphertext), MCRYPT_MODE_ECB, $this->_iv), 0, $length);
        }
    }
}
Edited by Kleingewerbe (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...