HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //usr/lib/python3.9/site-packages/dns/__pycache__/tsigkeyring.cpython-39.pyc
a

�M�eI
�@s|dZddlZddlmZmZddlZddlZeeefeej	j
ejjfd�dd�Z
eej	j
efeeefd�dd	�ZdS)
zA place to store TSIG keys.�N)�Any�Dict)�textring�returncCsbi}|��D]P\}}tj�|�}t|t�r@tj�||�j||<q|\}}tj�|||�||<q|S)a7Convert a dictionary containing (textual DNS name, base64 secret)
    pairs into a binary keyring which has (dns.name.Name, bytes) pairs, or
    a dictionary containing (textual DNS name, (algorithm, base64 secret))
    pairs into a binary keyring which has (dns.name.Name, dns.tsig.Key) pairs.
    @rtype: dict)	�items�dns�name�	from_text�
isinstance�str�tsig�Key�secret)r�keyringr�valueZkname�	algorithmr�r�3/usr/lib/python3.9/site-packages/dns/tsigkeyring.pyr	s
r	)rrcCsvi}dd�}|��D]\\}}|��}t|t�r<||�||<qt|jt�rT||j�}n
t|j�}|j��|f||<q|S)a;Convert a dictionary containing (dns.name.Name, dns.tsig.Key) pairs
    into a text keyring which has (textual DNS name, (textual algorithm,
    base64 secret)) pairs, or a dictionary containing (dns.name.Name, bytes)
    pairs into a text keyring which has (textual DNS name, base64 secret) pairs.
    @rtype: dictcSst�|�����S)N)�base64Zencodebytes�decode�rstrip)rrrr�	b64encode6szto_text.<locals>.b64encode)r�to_textr
�bytesrrr)rrrr�keyZtnameZtext_secretrrrr-s

r)�__doc__r�typingrrZdns.namerZdns.tsigrr�Namerr
r	rrrrr�<module>s(