403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/test/__pycache__/time_hashlib.cpython-36.opt-1.pyc
3

x2_O�@s<ddlZddlZddlZdd�Zdd�Zdd�Zdd	�Zejd
Zed5krte	d
e�e	ded�e
ded�n�edkr�eej�dkr�ddlZe	dejd�e
dejde
eejd��n�edko�eej�dk�rddlZe	dejd�e
dejd�nVeee��rJee
ee�d��rJe
ee�Ze
dee
ee��ne	de�e
de�y
e�WnTek
�r�e
�e
d�e
d�e
d�e
d �e
d!�e
d"�e
��YnXe�ed#d$d%�ed&d'd%�ed(d)d%�ed*d+d%�ed,d-d%�ed.d/d%�ed0d1d%�ee�jd2d%�ed3d4d%�dS)6�NcCstd��dS)Nzeek, creatorFunc not overridden)�RuntimeError�rr�6/opt/alt/python36/lib64/python3.6/test/time_hashlib.py�creatorFunc	src	Csjd|d}d|}t}tj�}xt|�D]}||�j�}q*Wtj�}td||d|dt|�d|�dS)Niٞ��Zz%2.2f�seconds�x�bytes)r�time�range�digest�print�len)	�scale�nameZ
iterationsZlongStrZlocalCF�start�fr	�endrrr�test_scaled_msgsrcCs@tj�}xtd�D]
}t�}qWtj�}td||dd�dS)Ni Nz%2.2frz[20000 creations])rrrr)rr�drrrr�test_creates

rcCsDtj�}xtd�D]}t�j�}qWtj�}td||dd�dS)Ni Nz%2.2frz[20000 "" digests])rrrr
r)rrr	rrrr�	test_zero s
r��_md5�_shazimport zcreatorFunc = z.newztesting speed of oldzlegacy interface�_hashlib�zcreatorFunc = _hashlib.%s�ztesting speed of _hashlib.%sz+creatorFunc = lambda x=_hashlib.new : x(%r)z!testing speed of _hashlib.new(%r)�__call__ztesting speed of hashlib.z*creatorFunc = lambda x=hashlib.new : x(%r)z testing speed of hashlib.new(%r)z8pass argument(s) naming the hash to run a speed test on:z6 '_md5' and '_sha' test the legacy builtin md5 and shaz= '_hashlib' 'openssl_hName' 'fast' tests the builtin _hashlibz6 '_hashlib' 'hName' tests builtin _hashlib.new(shaFOO)z> 'hName' tests the hashlib.hName() implementation if it existsz.         otherwise it uses hashlib.new(hName).iٞz[huge data])rri|)z[large data]i&z
[medium data]i�z[4*small data]iPz[3*small data]��z[2*small data]�jz[small data]z[digest_size data]�
z[tiny data])rr)�sysrZhashlibrrrr�argvZhName�execrrr�getattr�hasattr�
ValueErrorZdigest_sizerrrr�<module>s\

"



Youez - 2016 - github.com/yon3zu
LinuXploit