ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib64/python3.8/__pycache__/crypt.cpython-38.pyc
U

e5d@s0dZddlZzddlZWn0ek
rHejdkr<ednedYnXddlZddl	m
Zddlm
ZejejdZeZGd	d
d
ed
dZd&ddd
dZd'ddZgZddddZeddddedddddD](Zeddeddeeddrqqedd d!d"ed#dd$d%[[dS)(zEWrapper to the POSIX crypt library call and associated functionality.NZwin32z,The crypt module is not supported on Windowsz;The required _crypt module was not built as part of CPython)SystemRandom)
namedtuplez./c@seZdZdZddZdS)_MethodziClass representing a salt method per the Modular Crypt Format or the
    legacy 2-character crypt method.cCsd|jS)Nz<crypt.METHOD_{}>)formatname)selfr/usr/lib64/python3.8/crypt.py__repr__sz_Method.__repr__N)__name__
__module____qualname____doc__r
rrrr	rsrz name ident salt_chars total_sizeroundscCsB|dkrtd}|dk	r4t|ts4t|jjd|js@d}nd|jd}|jr|jddkr|dkrpd}n@t|d}|d|>krtd	d
|krdksntd||d
d7}n^|jdkr|dk	r d|krdksntd|d|d7}n|dk	r t|d|d	ddt
|jD7}|S)zsGenerate a salt for the specified method.

    If not specified, the strongest available method will be used.

    Nrz+ object cannot be interpreted as an integer$2zrounds must be a power of 2z%rounds out of the range 2**4 to 2**31Z02d)56iiɚ;z+rounds out of the range 1000 to 999_999_999zrounds=z$ doesn't support the rounds argumentcss|]}ttVqdS)N)_srZchoice
_saltchars).0charrrr		<genexpr>Aszmksalt.<locals>.<genexpr>)methods
isinstanceint	TypeError	__class__rZident
bit_length
ValueErrorjoinrangeZ
salt_chars)methodrsZ
log_roundsrrr	mksalts2

r*cCs&|dkst|trt|}t||S)aRReturn a string representing the one-way hash of a password, with a salt
    prepended.

    If ``salt`` is not specified or is ``None``, the strongest
    available method will be selected and a salt generated.  Otherwise,
    ``salt`` may be one of the ``crypt.METHOD_*`` values, or a string as
    returned by ``crypt.mksalt()``.

    N)r rr*_cryptcrypt)Zwordsaltrrr	r,Es
r,cGsVt|f|}|td|<t||d}td|}|rRt||jkrRt|dSdS)NZMETHOD_rrTF)rglobalsr*r,lenZ
total_sizerappend)rrargsr(r-resultrrr	_add_methodWs

r3ZSHA512rjZSHA256r?)byarZBLOWFISHr;ZMD51"ZCRYPT
)N)N)rsys_sysr+ModuleNotFoundErrorplatformImportErrorstringZ_stringZrandomrZ
_SystemRandomcollectionsrZ_namedtupleZ
ascii_lettersZdigitsrrrr*r,rr3Z_vr/rrrr	<module>s2

	&