Hacked By AnonymousFox
�
)�f� � �l � d dl mZ d dlZd dlZd dlZdZ G d� de� � Zd� Z G d� de � � Z
dS ) � )�absolute_importNz
Eli Carterc � � e Zd ZdS )�HtpasswdDoesNotExistsN)�__name__�
__module__�__qualname__� � ��/builddir/build/BUILDROOT/lve-stats-4.2.8-1.el8.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/lib/commons/htpasswd.pyr r s � � � � � ��Dr
r c �X � d} t j | � � t j | � � z S )z/
Returns a string of 2 randome letters
z@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/.)�random�choice)�letterss r �saltr s* � ��G� �=��!�!�F�M�'�$:�$:�:�:r
c �2 � e Zd ZdZd d�Zd� Zd� Zd� Zd� ZdS )
�HtpasswdFilez2
A class for manipulating htpasswd files.
Fc �� � g | _ || _ |sQt j � | j � � r| � � � d S t
d| j z � � �d S )Nz%s does not exist)�entries�filename�os�path�exists�loadr )�selfr �creates r �__init__zHtpasswdFile.__init__"