public function getHashName()
    {
        //brak pliku
        if ($this->id === null) {
            return;
        }
        return substr(md5($this->name . \App\Registry::$config->salt), 0, 8);
    }