| Server IP : 185.216.8.13 / Your IP : 216.73.216.187 Web Server : Apache System : Linux webhost-vie2.sitetide.com 4.18.0-553.156.1.el8_10.x86_64 #1 SMP Mon Aug 17 17:52:57 UTC 2026 x86_64 User : medicalkn ( 9986) PHP Version : 8.2.33 Disable Function : syslog MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3.6/site-packages/pyzor/__pycache__/ |
Upload File : |
3
�Ugb� � @ sj d Z ddlZddlZddlZejfdd�Zejfdd�Zdd� ZG d d
� d
e�Z dd� Z
e ejdd
�ZdS )z�A collection of utilities that facilitate working with Pyzor accounts.
Note that accounts are not necessary (on the client or server), as an
"anonymous" account always exists.� Nc C sN |j � j� jd�}|� }|j||�j� � |jd|| f jd�� |j� j� S )z�Converts the key, timestamp (epoch seconds), and msg into a digest.
lower(H(H(M) + ':' T + ':' + K))
M is message
T is integer epoch timestamp
K is hashed_key
H is the hash function (currently SHA1)
�utf8z:%d:%s)Z as_string�strip�encode�update�digest� hexdigest�lower)Z
hashed_key� timestamp�msg�hash_r � r �/usr/lib/python3.6/account.py�sign_msg s
r c C s&