dnspython  1.16.0
About: dnspython is a DNS toolkit (for Python 2.x) that supports almost all record types.
  Fossies Dox: dnspython-1.16.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dns.tsigkeyring Namespace Reference

Functions

def from_text (textring)
 
def to_text (keyring)
 

Function Documentation

◆ from_text()

def dns.tsigkeyring.from_text (   textring)
Convert a dictionary containing (textual DNS name, base64 secret) pairs
into a binary keyring which has (dns.name.Name, binary secret) pairs.
@rtype: dict

Definition at line 27 of file tsigkeyring.py.

References dns.name.from_text(), and dns._compat.maybe_encode().

◆ to_text()

def dns.tsigkeyring.to_text (   keyring)
Convert a dictionary containing (dns.name.Name, binary secret) pairs
into a text keyring which has (textual DNS name, base64 secret) pairs.
@rtype: dict

Definition at line 40 of file tsigkeyring.py.

References dns._compat.maybe_decode().