403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/passlib/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/passlib/__pycache__/win32.cpython-39.pyc
a

f�Wc
�@sjdZddlmZede�ddlmZddlmZddlm	Z	ddl
mZgd�Zd	Z
ejZddd
�ZdS)apasslib.win32 - MS Windows support - DEPRECATED, WILL BE REMOVED IN 1.8

the LMHASH and NTHASH algorithms are used in various windows related contexts,
but generally not in a manner compatible with how passlib is structured.

in particular, they have no identifying marks, both being
32 bytes of binary data. thus, they can't be easily identified
in a context with other hashes, so a CryptHandler hasn't been defined for them.

this module provided two functions to aid in any use-cases which exist.

.. warning::

    these functions should not be used for new code unless an existing
    system requires them, they are both known broken,
    and are beyond insecure on their own.

.. autofunction:: raw_lmhash
.. autofunction:: raw_nthash

See also :mod:`passlib.hash.nthash`.
�)�warnz�the 'passlib.win32' module is deprecated, and will be removed in passlib 1.8; please use the 'passlib.hash.nthash' and 'passlib.hash.lmhash' classes instead.)�hexlify)�unicode)�des_encrypt_block)�nthash)r�
raw_lmhash�
raw_nthashsKGS!@#$%�asciiFcCsnt|t�r|�|�}|��dd�ddt|�}t|dd�t�t|dd�t�}|rjt|��d�S|S)z]encode password using des-based LMHASH algorithm; returns string of raw bytes, or unicode hexN���r	)	�
isinstancer�encode�upper�lenr�LM_MAGICr�decode)Zsecret�encoding�hex�ns�out�r�1/usr/lib/python3.9/site-packages/passlib/win32.pyr5s


 $rN)r	F)�__doc__�warningsr�DeprecationWarningZbinasciirZpasslib.utils.compatrZpasslib.crypto.desrZpasslib.hashr�__all__rrrrrrr�<module>s�	

Youez - 2016 - github.com/yon3zu
LinuXploit