
    5i
                        d dl Z d dlZ d dlZ ej        e          Zd ZddddddZg d	g d	g d	g d	d
Zdgdgdgdgd
Z	da
eD ]oZ	 e j                            ee                    n# e$ r Y +w xY we j                            ee                    e	D ]Ze	e                             e           pd Zd Zd ZdS )    Nc                 F    t          | |g          } t          | |          S )N)fromlist)
__import__getattr)modulenames     H/home/kali/Ninja/venv/lib/python3.11/site-packages/unicrypto/__init__.pyimport_fromr
      s&    
Vtf
-
-
-    mbedtlscryptography
CryptodomezCrypto.Cipher.Salsa20zCrypto.Random.OSRNG)r   r   pyCryptodomexpyCryptodomepyCrypto)r   r   r   r   r   pure)DESTDESAESRC4r   c                     t                               d|d| d           d|                                d| }t          ||           S )Nzsymmetric using "z" for ""zunicrypto.backends..)loggerdebuglowerr
   )
ciphernamecryptolibname
moduleNames      r	   get_cipher_by_namer    1   sT    


KLLLL,9,?,?,A,A,A,A::NJ,,,r   c                 v   t           | t          vrt          d| z            t          t	          t          |                                        t	          t          |                                        }d }t          |          D ]
}||v r|} n|t          d| z            nt           }t          | |          S )NzCipher "%s" is not supported!z.Could not find any modules to load cipher "%s")override_library	preftable	Exceptionlistsetintersectionavailable_modulesr    )r   possible_prefmoduleselected_moduler   s       r	   get_preferred_cipherr+   7   s    y  	2Z?	@	@@S:!677DDSIZ[eIfEgEghhii/j) 
 
j''' O	E ( 	CjP	Q	QQ  %/ 	:777r   c                 
    | a d S )N)r"   )libnames    r	   use_libraryr.   L   s    r   )	importlibimportlib.utillogging	getLogger__name__r   r
   pref_to_moduler#   r(   r"   prefnameutil	find_specModuleNotFoundErrorkappendr    r+   r.    r   r	   <module>r<      s           		8	$	$  
  (#  
U	T	T	T	T	T	T	T	T	T	T	T	 	 (

	     ) )H.>(34444   
( N^H566B ) )aQx((((- - -8 8 8*    s   	 A**A21A2