AlkantarClanX12

Your IP : 3.17.155.142


Current Path : /lib/python3.6/site-packages/dns/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/dns/__pycache__/tsigkeyring.cpython-36.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