protected function secureHash(AttachmentDataInterface $attachment, $variant = '')
    {
        return hash(
            'sha256',
            $this->id($attachment, $variant) . $attachment->size() . $this->filename($attachment, $variant)
        );
    }