src/IdentityModel.php
public function getEncodeHash(int $id, string $slug, string $linkValidate = null): string
    {
        return base64_encode(uniqid(($linkValidate ? strtotime($linkValidate) : self::NO_TIME) . self::TIME_SEPARATOR, true) . self::PART_SEPARATOR . $this->getHash($id . $slug) . self::ID_SEPARATOR . $id);
    }
public function getEncodeHash(int $id, string $slug, string $linkValidate = null): string
    {
        return base64_encode(uniqid(($linkValidate ? strtotime($linkValidate) : self::NO_TIME) . self::TIME_SEPARATOR, true) . self::PART_SEPARATOR . $this->getHash($id . $slug) . self::ID_SEPARATOR . $id);
    }
Get encode hash.

@param int         $id
@param string      $slug
@param string|null $linkValidate
@return string