Your IP : 18.223.159.143


Current Path : /usr/lib/python3.6/site-packages/dns/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/dns/__pycache__/tsigkeyring.cpython-36.opt-1.pyc

3

�b�W��@s8dZddlmZmZddlZddlZdd�Zdd�ZdS)zA place to store TSIG keys.�)�maybe_decode�maybe_encodeNcCs<i}x2|D]*}tjj|�}tjt||��}|||<q
W|S)z�Convert a dictionary containing (textual DNS name, base64 secret) pairs
    into a binary keyring which has (dns.name.Name, binary secret) pairs.
    @rtype: dict)�dns�name�	from_text�base64Zdecodestringr)�textring�keyring�keytext�keyname�secret�r
�!/usr/lib/python3.6/tsigkeyring.pyrs
rcCs<i}x2|D]*}t|j��}ttj||��}|||<q
W|S)z�Convert a dictionary containing (dns.name.Name, binary secret) pairs
    into a text keyring which has (textual DNS name, base64 secret) pairs.
    @rtype: dict)r�to_textrZencodestring)r	rrr
rr
r
rr&s
r)	�__doc__Zdns._compatrrrZdns.namerrrr
r
r
r�<module>s


?>