| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/cred/test/__pycache__/ |
Upload File : |
U
W[!_ � @ s� d Z ddlmZmZ ddlZddlmZ ddlmZm Z ddl
mZ ddlm
Z
ddlmZ dd lmZ dd
lmZmZmZ ddlmZmZ ddlmZ d
d� ZG dd� de�ZG dd� de
�ZdS )z[
Tests for L{twisted.cred._digest} and the associated bits in
L{twisted.cred.credentials}.
� )�division�absolute_importN)�hexlify)�md5�sha1)�verifyObject)�TestCase)�IPv4Address)�LoginFailed)�calcHA1�calcHA2�IUsernameDigestHash)�calcResponse�DigestCredentialFactory)�
networkStringc C s t �| ��� S )N)�base64� b64encode�strip)�s� r �C/usr/lib/python3/dist-packages/twisted/cred/test/test_digestauth.pyr s r c s0 e Zd ZdZ� fdd�Zdd� Zdd� Z� ZS )�FakeDigestCredentialFactoryz\
A Fake Digest Credential Factory that generates a predictable
nonce and opaque
c s t t| �j||� d| _d S )N� 0)�superr �__init__�
privateKey)�self�args�kwargs�� __class__r r r "