public function HashFile($path, $theme = true)
    {
        $path = $theme ? $this->getPath($path) : $path;

        if (file_exists($path)) {
            $hash = md5_file($path);
            return str_replace(array('/', '+', '='), '', base64_encode(pack('H*', $hash)));
        }

        return '';
    }