Module t.c.c.knownhosts

Part of twisted.conch.client View Source

An implementation of the OpenSSH known_hosts database.
Present Since8.2
Class PlainEntry A PlainEntry is a representation of a plain-text entry in a known_hosts
Class UnparsedEntry UnparsedEntry is an entry in a KnownHostsFile which can't actually be
Class HashedEntry A HashedEntry is a representation of an entry in a known_hosts file
Class KnownHostsFile A structured representation of an OpenSSH-format ~/.ssh/known_hosts file.
Class ConsoleUI A UI object that can ask true/false questions and post notifications on the
Function _b64encode Encode a binary string as base64 with no trailing newline.
Function _extractCommon Extract common elements of base64 keys from an entry in a hosts file.
Class _BaseEntry Abstract base of both hashed and non-hashed entry objects, since they
Function _hmacedString Return the SHA-1 HMAC hash of the given key and string.
def _b64encode(s): (source)
Encode a binary string as base64 with no trailing newline.
def _extractCommon(string): (source)
Extract common elements of base64 keys from an entry in a hosts file.
Returnsa 4-tuple of hostname data (str), ssh key type (str), key (Key), and comment (str or None). The hostname data is simply the beginning of the line up to the first occurrence of whitespace.
def _hmacedString(key, string): (source)
Return the SHA-1 HMAC hash of the given key and string.
API Documentation for Twisted, generated by pydoctor at 2009-11-24 22:07:21.