static function Decrypt($data, $key, $decode = true, $strip_nulls = true)
	{
		McryptUtil::Init();
		
		if ($decode) $data = base64_decode($data);
		
		$decrypted = mcrypt_decrypt(McryptUtil::$CIPHER, $key, $data, McryptUtil::$MODE, McryptUtil::$IV);
		
		// mcrypt pads the end of the block with null chars, so we need to strip them
		return $strip_nulls ? rtrim($decrypted, "\0") : $decrypted;

	}