%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/passlib/ |
Current File : //lib/python2.7/site-packages/passlib/win32.pyc |
� � 5Xc @ s� d Z d d l m Z e d e � d d l m Z d d l m Z d d l m Z d d l m Z d d d g Z d Z e j Z d e d � Z d S( s 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`. i����( t warns� 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.( t hexlify( t unicode( t des_encrypt_block( t nthashR t raw_lmhasht raw_nthashs KGS!@#$%t asciic C s� t | t � r! | j | � } n | j � d d d t | � } t | d t � t | d t � } | r� t | � j d � S| S( s] encode password using des-based LMHASH algorithm; returns string of raw bytes, or unicode hexi t i R ( t isinstanceR t encodet uppert lenR t LM_MAGICR t decode( t secrett encodingt hext nst out( ( s1 /usr/lib/python2.7/site-packages/passlib/win32.pyR 5 s "$N( t __doc__t warningsR t DeprecationWarningt binasciiR t passlib.utils.compatR t passlib.crypto.desR t passlib.hashR t __all__R R t FalseR ( ( ( s1 /usr/lib/python2.7/site-packages/passlib/win32.pyt <module> s