grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026o ®û|jã@s, ddlZzddlZWneyejdkredƒ‚edƒ‚wddlZddlZddl m Z ddl m ZejejdZe ƒZGdd „d ed d ƒƒZd%dd œd d „Zd%dd„ZgZdd œdd„ZeddddƒeddddƒdD]Zeddeddeeƒdd �rƒnqpeddd d!ƒed"dd#d$ƒ[[dS)&éNZwin32z,The crypt module is not supported on Windowsz;The required _crypt module was not built as part of CPython)Ú SystemRandom)Ú namedtuplez./c@seZdZ dd„ZdS)Ú_MethodcCs d |j¡S)Nz)ÚformatÚname)Úself©rú,/opt/alt/python310/lib64/python3.10/crypt.pyÚ__repr__s z_Method.__repr__N)Ú__name__Ú __module__Ú __qualname__r rrrr rs rz name ident salt_chars total_size©ÚroundscCsJ |dur td}|durt|tƒst|jj›d�ƒ‚|js!d}nd|j›d�}|jre|jddkre|dur9d}n#t |d¡}|d|>krJtdƒ‚d |krWd ks\td ƒ‚td ƒ‚||d ›d�7}n/|jd vr‰|durˆd|kr{dks€tdƒ‚tdƒ‚|d|›d�7}n |dur”t|›d�ƒ‚|d  dd„t |j ƒDƒ¡7}|S)Nrz+ object cannot be interpreted as an integerÚú$Ú2é ézrounds must be a power of 2ééz%rounds out of the range 2**4 to 2**31Z02d)Ú5Ú6ièiÿÉš;z+rounds out of the range 1000 to 999_999_999zrounds=z$ doesn't support the rounds argumentcss�|]}t t¡VqdS©N)Ú_srZchoiceÚ _saltchars)Ú.0Úcharrrr Ú Bs€zmksalt..) ÚmethodsÚ isinstanceÚintÚ TypeErrorÚ __class__r ZidentÚ bit_lengthÚ ValueErrorÚjoinÚrangeZ salt_chars)ÚmethodrÚsZ log_roundsrrr Úmksalt s> ÿ ÿ€r*cCs( |dus t|tƒrt|ƒ}t ||¡Sr)r rr*Ú_cryptÚcrypt)ZwordÚsaltrrr r,Fs  r,c Gs t|g|¢RŽ}|tƒd|<t||d�}d}ztd|ƒ}Wnty=}z|jtjtjtjhvr8WYd}~dS‚d}~ww|rNt |ƒ|j krNt   |¡dSdS)NZMETHOD_rrFT) rÚglobalsr*r,ÚOSErrorÚerrnoZEINVALZEPERMZENOSYSÚlenZ total_sizerÚappend)rrÚargsr(r-ÚresultÚerrr Ú _add_methodXs  €ü r6ZSHA512rééjZSHA256ré?)ÚbÚyÚarZBLOWFISHréé;ZMD5Ú1éé"ZCRYPTéé r)ÚsysÚ_sysr+ÚModuleNotFoundErrorÚplatformÚ ImportErrorr0ÚstringZ_stringZrandomrZ _SystemRandomÚ collectionsrZ _namedtupleZ ascii_lettersZdigitsrrrr*r,rr6Z_vr1rrrr Ús:   ü   &ÿ