AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 18.190.239.40
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python2.7/site-packages/passlib/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pyc
�
�
5Xc@�s�dZddlmZmZddlmZddlZddlmZm	Z	m
Z
ddlmZddl
mZmZdd	d
gZdefd��YZd�Zee�d
�d
efd��Y�Zd	efd��YZdS(s2passlib.tests -- unittests for passlib.crypto._md4i����(twith_statementtdivision(thexlifyN(t
bascii_to_strtPY3tu(tlookup_hash(tTestCaset
skipUnlesst_Common_MD4_TesttMD4_Builtin_TesttMD4_SSL_TestcB�s_eZdZdddddddgZd�Zd�Zd�Zd�Zd�Zd�Z	RS(s$common code for testing md4 backendstt 31d6cfe0d16ae931b73c59d7e0c089c0tat bde52cb31de33e46245e05fbdbd6fb24tabct a448017aaf21d8525fc10ae87aa6729dsmessage digestt d9130a8164549fe818874806e1c7014btabcdefghijklmnopqrstuvwxyzt d79e1c308aa5bbcdeea8ed63df412da9t>ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789t 043f8582f241db351ce627e153e7f0e4tP12345678901234567890123456789012345678901234567890123456789012345678901234567890t e33b4ddc9c38f2199c3e7b164fcc0536cC�s
td�jS(sd
        get md4 constructor --
        overridden by subclasses to use alternate backends.
        tmd4(Rtconst(tself((sI/usr/lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pyt
get_md4_const'scC�sL|j��}|j|jd�|j|jd�|j|jd�dS(sinformational attributesRii@N(RtassertEqualtnametdigest_sizet
block_size(Rth((sI/usr/lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pyt
test_attrs.scC�s�|j�}|d�}|j|j�d�|jd�|j|j�d�|jd�|j|j�d�tr�|�}|jt|jtd��|j|j�d�n2|�}|jtd��|j|j�d�dS(supdate() methodRR
RRtbcdefghijklmnopqrstuvwxyzRN(RRt	hexdigesttupdateRtassertRaisest	TypeErrorR(RRR!((sI/usr/lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pyttest_md4_update5s

		cC�sL|j�}x9|jD].\}}||�j�}|j||�qWdS(shexdigest() methodN(RtvectorsR$R(RRtinputthextout((sI/usr/lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pyttest_md4_hexdigestLscC�sX|j�}xE|jD]:\}}tt||�j���}|j||�qWdS(sdigest() methodN(RR)RRtdigestR(RRR*R+R,((sI/usr/lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pyttest_md4_digestSscC�sn|j�}|d�}|j�}|jd�|j|j�d�|jd�|j|j�d�dS(s
copy() methodRtdeft 804e7f1c2586e50b49ac65db5b645131tghit c5225580bfe176f6deeee33dee98732cN(RtcopyR%RR$(RRR!th2((sI/usr/lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pyt
test_md4_copyZs

(Rs 31d6cfe0d16ae931b73c59d7e0c089c0(Rs bde52cb31de33e46245e05fbdbd6fb24(sabcR(smessage digestR(Rs d79e1c308aa5bbcdeea8ed63df412da9(RR(RR(
t__name__t
__module__t__doc__R)RR"R(R-R/R6(((sI/usr/lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pyR	s						cC�s.ytjd�tSWntk
r)tSXdS(s1
    check if hashlib natively supports md4.
    RN(thashlibtnewtTruet
ValueErrortFalse(((sI/usr/lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pythas_native_md4ks


shashlib lacks ssl/md4 supportcB�seZdZd�ZRS(shashlib.new('md4')cC�s0tt|�j�|j|j�jd�dS(NR:(tsuperRtsetUpRRR8(R((sI/usr/lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pyRA~s(R7R8tdescriptionPrefixRA(((sI/usr/lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pyRwscB�seZdZd�ZRS(spasslib.crypto._md4.md4()c�s�tt|�j�t�rdtj��fd�}|jtd|�tj�|j	tj�n|j
|j�jd�dS(Nc�s(|dkrtd��n�||�S(NRsmd4 disabled for testing(R=(Rtargs(torig(sI/usr/lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pytwrapper�sR;spasslib.crypto._md4(
R@R
RAR?R:R;t	patchAttrRtclear_cachet
addCleanupRRR8(RRE((RDsI/usr/lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pyRA�s		
(R7R8RBRA(((sI/usr/lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pyR
�s(R9t
__future__RRtbinasciiRR:tpasslib.utils.compatRRRtpasslib.crypto.digestRtpasslib.tests.utilsRRt__all__R	R?RR
(((sI/usr/lib/python2.7/site-packages/passlib/tests/test_crypto_builtin_md4.pyt<module>s	S	

Anon7 - 2022
AnonSec Team