| Server IP : 186.64.123.29 / Your IP : 216.73.217.94 Web Server : LiteSpeed System : Linux house.hostinglat.cl 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 User : tuemp9827 ( 1016) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/CyberCP/plogical/__pycache__/ |
Upload File : |
o
���g� � @ s4 d dl Z d dlZd dlZdd� Zdd� Zdd� ZdS )� Nc C s, t �� j}t�|�� | �� ��� d | S �N�:)�uuid�uuid4�hex�hashlib�sha256�encode� hexdigest)�password�salt� r
�+/usr/local/CyberCP/plogical/hashPassword.py�
hash_password s
"r c C s, | � d�\}}|t�|�� |�� ��� kS r )�splitr r r r
)�hashed_password�
user_passwordr r r
r
r �check_password s r c C s* | � d|� �� � }t�|��� }d�|�S )Nr z Basic {0})r r r r
�format)�usernamer �credentials�hashed_credentialsr
r
r �
generateToken s
r )r �bcryptr r r r r
r
r
r �<module> s