protected function secureHash(AttachmentDataInterface $attachment, $variant = '')
    {
        return hash(
            'sha256',
            $this->id($attachment, $variant) . $attachment->size() . $this->filename($attachment, $variant)
        );
    }
protected function secureHash(AttachmentDataInterface $attachment, $variant = '')
    {
        return hash(
            'sha256',
            $this->id($attachment, $variant) . $attachment->size() . $this->filename($attachment, $variant)
        );
    }
protected function secureHash ( AttachmentDataInterface $ attachment , $ variant = '' ) { return hash ( 'sha256' , $ this -> id ( $ attachment , $ variant ) . $ attachment -> size ( ) . $ this -> filename ( $ attachment , $ variant ) ) ; }
Return a secure Bcrypt hash of the attachment's corresponding instance id.

@param AttachmentDataInterface $attachment
@param string                  $variant
@return string
Return a secure Bcrypt hash of the attachment s corresponding instance id .