File manager - Edit - /usr/local/CyberCP/plogical/__pycache__/hashPassword.cpython-310.pyc
Back
o �h� � @ 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
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings