private function encodeTags($tags)
    {
        if (!is_array($tags)) {
            $tags = array($tags);
        }

        if ($this->config['tag']['encode']) {
            $tmp = [];
            foreach ($tags as $tag) {
                $tmp[] = hash('crc32b', $this->config['tag']['secret'].$tag, false);
            }
            $tags = $tmp;
        }

        return $tags;
    }