403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/passlib/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/passlib/utils/__pycache__/pbkdf2.cpython-314.pyc
+
�THi���a�Rt0tRt^RIHt^RIHt^RIHtHtH	t	^RIH
t^RIH
t
.ROt]!R]4/t]^kR
tRtRR	lt
RR
ltR#)z�passlib.pbkdf2 - PBKDF2 support

this module is getting increasingly poorly named.
maybe rename to "kdf" since it's getting more key derivation functions added.
)�Mapping)�warn)�compile_hmac�lookup_hash�pbkdf2_hmac)�pbkdf1)�ExpectedTypeErrorz�the module 'passlib.utils.pbkdf2' is deprecated as of Passlib 1.7, and will be removed in Passlib 2.0, please use 'passlib.crypto' insteadc�a�V\9d\V,#\V\4'deVP\4'g\RV:24h\
VR,4PoV3RlpWPP3pM4\V4'd\V!RR44pW3pM
\VRR4hV\V&V#)a�Lookup pseudo-random family (PRF) by name.

:arg name:
    This must be the name of a recognized prf.
    Currently this only recognizes names with the format
    :samp:`hmac-{digest}`, where :samp:`{digest}`
    is the name of a hash function such as
    ``md5``, ``sha256``, etc.

    todo: restore text about callables.

:raises ValueError: if the name is not known
:raises TypeError: if the name is not a callable or string

:returns:
    a tuple of :samp:`({prf_func}, {digest_size})`, where:

    * :samp:`{prf_func}` is a function implementing
      the specified PRF, and has the signature
      ``prf_func(secret, message) -> digest``.

    * :samp:`{digest_size}` is an integer indicating
      the number of bytes the function returns.

Usage example::

    >>> from passlib.utils.pbkdf2 import get_prf
    >>> hmac_sha256, dsize = get_prf("hmac-sha256")
    >>> hmac_sha256
    <function hmac_sha256 at 0x1e37c80>
    >>> dsize
    32
    >>> digest = hmac_sha256('password', 'message')

.. deprecated:: 1.7

    This function is deprecated, and will be removed in Passlib 2.0.
    This only related replacement is :func:`passlib.crypto.digest.compile_hmac`.
zunknown prf algorithm: ��NNc�(<�\SV4!V4#)N)r)�key�msg�digests&&��6/usr/lib/python3/dist-packages/passlib/utils/pbkdf2.py�hmac�get_prf.<locals>.hmacZs������,�S�1�1��x�yzstr or callablezprf name)
�
_prf_cache�
isinstance�str�
startswith�_HMAC_PREFIXES�
ValueErrorr�name�digest_info�digest_size�callable�lenr)rr�recordrrs&   @r�get_prfr"+s����P�z���$����$�������~�.�.��6�t�h�?�@�@��T�"�X�&�+�+��	2��(�(�4�4�5��	�$����$�t�T�*�+���$����&7��D�D��J�t���MrNc��\W@WV4#)apkcs#5 password-based key derivation v1.5

:arg secret: passphrase to use to generate key
:arg salt: salt string to use when generating key
:param rounds: number of rounds to use to generate key
:arg keylen: number of bytes to generate (if ``None``, uses digest's native size)
:param hash:
    hash function to use. must be name of a hash recognized by hashlib.

:returns:
    raw bytes of generated key

.. note::

    This algorithm has been deprecated, new code should use PBKDF2.
    Among other limitations, ``keylen`` cannot be larger
    than the digest size of the specified hash.

.. deprecated:: 1.7

    This has been relocated to :func:`passlib.crypto.digest.pbkdf1`,
    and this version will be removed in Passlib 2.0.
    *Note the call signature has changed.*
)�_pbkdf1)�secret�salt�rounds�keylen�hashs&&&&&rrrhs��2�4��v�6�6rc���\V4'g2\V\4'd'VP\4'g\R4hVR,p\
WPWV4#)a�pkcs#5 password-based key derivation v2.0

:arg secret:
    passphrase to use to generate key

:arg salt:
    salt string to use when generating key

:param rounds:
    number of rounds to use to generate key

:arg keylen:
    number of bytes to generate.
    if set to ``None``, will use digest size of selected prf.

:param prf:
    psuedo-random family to use for key strengthening.
    this must be a string starting with ``"hmac-"``, followed by the name of a known digest.
    this defaults to ``"hmac-sha1"`` (the only prf explicitly listed in
    the PBKDF2 specification)

    .. rst-class:: warning

    .. versionchanged 1.7:

        This argument no longer supports arbitrary PRF callables --
        These were rarely / never used, and created too many unwanted codepaths.

:returns:
    raw bytes of generated key

.. deprecated:: 1.7

    This has been deprecated in favor of :func:`passlib.crypto.digest.pbkdf2_hmac`,
    and will be removed in Passlib 2.0.  *Note the call signature has changed.*
z1non-HMAC prfs are not supported as of Passlib 1.7r
)rrrrr�NotImplementedErrorr)r%r&r'r(�prfrs&&&&& r�pbkdf2r-�sL��J��}�}��C��-�-�c�n�n�^�6T�6T�!�"U�V�V�
��W�F��v�t�V�<�<rc��V^8�dQh/^\9d,\\\\\3,3,;R&#)�r)�__conditional_annotations__rr�tuple�int)�formats"r�__annotate__r4s2����H/�.�G�C��s�C�x��(�)�.�Ir)r"rr-)�hmac_zhmac-)N�sha1)Nz	hmac-sha1)r0�__doc__�collections.abcr�warningsr�passlib.crypto.digestrrrrr$�passlib.excr�__all__�DeprecationWarningrrr"r-r4)r0s@r�<module>r>sb����$����
�*����N���-/�
�.�$��:�z7�8(=r

Youez - 2016 - github.com/yon3zu
LinuXploit