ó
    ´æ¹i
  ã                   ó„   • S r SSKJr  \" S\5        SSKJr  SSKJr  SSKJ	r	  SSK
Jr  / SQrS	r\R                  rSS
 jrg)a  passlib.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_nthashs   KGS!@#$%c                 ó,  • [        U [        5      (       a  U R                  U5      n U R                  5       SS SS[	        U 5      -
  -  -   n[        USS [        5      [        USS [        5      -   nU(       a  [        U5      R                  S5      $ U$ )z]encode password using des-based LMHASH algorithm; returns string of raw bytes, or unicode hexNé   ó    é   Úascii)	Ú
isinstancer   ÚencodeÚupperÚlenr   ÚLM_MAGICr   Údecode)ÚsecretÚencodingÚhexÚnsÚouts        Ú^/home/gothic/Documentos/geniubs/sat/app/api/venv/lib/python3.13/site-packages/passlib/win32.pyr   r   5   s„   € ô �&œ'×"Ñ"Ø—‘˜xÓ(ˆØ	�‰‹˜˜Ð	˜w¨"¬S°«[©.Ñ9Ñ	9€BÜ
˜B˜r ˜F¤HÓ
-Ô0AÀ"ÀQÀRÀ&Ì(Ó0SÑ
S€CÞ+.Œ7�3‹<×Ñ˜wÓ'Ð7°CÐ7ó    N)r   F)Ú__doc__Úwarningsr   ÚDeprecationWarningÚbinasciir   Úpasslib.utils.compatr   Úpasslib.crypto.desr   Úpasslib.hashr   Ú__all__r   r	   r   © r   r   Ú<module>r%      sO   ðñõ. Ù ð .ð ôõ õ )Ý 0Ý ò€ð €à×Ñ€
õ8r   