'Implement L{IKnownHostEntry.toString} by base64-encoding the salt, host
hash, and key.
@return: The string representation of this entry, with the hostname part
hashed.
@rtype: L{bytes}'

def toString(self):

    fields = [(self.MAGIC + '|'.join([_b64encode(self._hostSalt), _b64encode(self._hostHash)])), self.keyType, _b64encode(self.publicKey.blob())]
    if (self.comment is not None):
        fields.append(self.comment)
    return '    '.join(fields)
