static function encodeBytes($content)
 {
     return haxe_Md5::encode($content->toString());
 }
 public function createCasImage($imageParameter)
 {
     $output = "";
     $contextPath = $this->plugin->getConfiguration()->getProperty(com_wiris_plugin_api_ConfigurationKeys::$CONTEXT_PATH, "/");
     if ($imageParameter !== null) {
         $dataDecoded = com_wiris_plugin_impl_CasImpl::decodeBase64($imageParameter);
         $digest = haxe_Md5::encode($imageParameter);
         $store = $this->plugin->getStorageAndCache();
         $store->storeData($digest, "png", $dataDecoded->b);
         $showImagePath = $this->plugin->getConfiguration()->getProperty(com_wiris_plugin_api_ConfigurationKeys::$SHOWCASIMAGE_PATH, null);
         $output .= com_wiris_plugin_impl_RenderImpl::concatPath($contextPath, $showImagePath) . rawurlencode($digest . ".png");
     } else {
         $output .= com_wiris_plugin_impl_RenderImpl::concatPath($contextPath, "core/cas.png");
     }
     return $output;
 }