https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /usr/lib/python3/dist-packages/twisted/web/_auth/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python3/dist-packages/twisted/web/_auth/__pycache__/basic.cpython-310.pyc
o

�b^�@sNdZddlZddlmZddlmZmZddlmZee�Gdd�d��Z	dS)z�
HTTP BASIC authentication.

@see: U{http://tools.ietf.org/html/rfc1945}
@see: U{http://tools.ietf.org/html/rfc2616}
@see: U{http://tools.ietf.org/html/rfc2617}
�N)�implementer)�credentials�error)�ICredentialFactoryc@s,eZdZdZdZdd�Zdd�Zdd�Zd	S)
�BasicCredentialFactoryz�
    Credential Factory for HTTP Basic Authentication

    @type authenticationRealm: L{bytes}
    @ivar authenticationRealm: The HTTP authentication realm which will be issued in
        challenges.
    sbasiccCs
||_dS)N��authenticationRealm)�selfr�r
�9/usr/lib/python3/dist-packages/twisted/web/_auth/basic.py�__init__"s
zBasicCredentialFactory.__init__cCs
d|jiS)zy
        Return a challenge including the HTTP authentication realm with which
        this factory was created.
        �realmr)r	�requestr
r
r�getChallenge%s
z#BasicCredentialFactory.getChallengecCsZz	t�|d�}Wn
tjyt�d��w|�dd�}t|�dkr(tj|�St�d��)z�
        Parse the base64-encoded, colon-separated username and password into a
        L{credentials.UsernamePassword} instance.
        s===zInvalid credentials�:��)	�binascii�
a2b_base64�Errorr�LoginFailed�split�lenr�UsernamePassword)r	�responser�credsr
r
r�decode,s
�

zBasicCredentialFactory.decodeN)�__name__�
__module__�__qualname__�__doc__�schemerrrr
r
r
rrsr)
r r�zope.interfacer�twisted.credrr�twisted.web.iwebrrr
r
r
r�<module>s	

https://t.me/RX1948 - 2025