core-bundle/src/Resources/contao/library/Contao/Encryption.php
protected static function initialize()
	{
		if (!\in_array('mcrypt', get_loaded_extensions()))
		{
			throw new \Exception('The PHP mcrypt extension is not installed');
		}

		if (!self::$resTd = mcrypt_module_open(Config::get('encryptionCipher'), '', Config::get('encryptionMode'), ''))
		{
			throw new \Exception('Error initializing encryption module');
		}
	}
protected static function initialize()
	{
		if (!\in_array('mcrypt', get_loaded_extensions()))
		{
			throw new \Exception('The PHP mcrypt extension is not installed');
		}

		if (!self::$resTd = mcrypt_module_open(Config::get('encryptionCipher'), '', Config::get('encryptionMode'), ''))
		{
			throw new \Exception('Error initializing encryption module');
		}
	}
Initialize the encryption module

@throws \Exception If the encryption module cannot be initialized