Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.11/site-packages/ansible/utils/__pycache__/ |
Upload File : |
� ���c~( � � � d dl mZmZmZ eZd dlZd dlZd dlZd dl Z d dl Z d dlmZ d dl mZ d dlmZmZ d dlmZ d dlmZmZ d dlmZ dxZZd xZZ d dlZd dlZd d l m!Z!m"Z" d dl#m$Z$ n# e%$ r d dl&m$Z$ Y nw xY wdZn# e'$ rZ(e(ZY dZ([(ndZ([(ww xY w d dl)Z)dZn# e'$ rZ(e(ZY dZ([(ndZ([(ww xY w e� � Z*d gZ+ ej, � � Z-dZ.e.ej/ dfd�Z0dd�Z1 G d� de2� � Z3 G d� de3� � Z4 G d� de3� � Z5dd�Z6dd�Z7dS )� )�absolute_import�division�print_functionN)� namedtuple)� constants)�AnsibleError�AnsibleAssertionError)� text_type)�to_text�to_bytes)�DisplayF)� HasRawSalt� PrefixWrapper)�bcrypt64T� do_encrypt� c �& ��� t �t � � s"t ��dt �� � �d�� � �|�t j � � �nt j |� � �d� ��fd�t | � � D � � � � S )a Return a random password string of length containing only chars :kwarg length: The number of characters in the new password. Defaults to 20. :kwarg chars: The characters to choose from. The default is all ascii letters, ascii digits, and these symbols ``.,:-_`` z (z) is not a text_typeN� c 3 �B �K � | ]}�� �� � V � �d S �N)�choice)�.0�dummy�chars�random_generators ���:/usr/lib/python3.11/site-packages/ansible/utils/encrypt.py� <genexpr>z"random_password.<locals>.<genexpr>A s2 �� � � �N�N�u�$�+�+�E�2�2�N�N�N�N�N�N� ) � isinstancer r �type�random�SystemRandom�Random�join�range)�lengthr �seedr s ` @r �random_passwordr( 3 s� ��� � �e�Y�'�'� Y�#�E�E�E�4�PU�;�;�;�;�$W�X�X�X��|�!�.�0�0���!�=��.�.���8�8�N�N�N�N�N��f� � �N�N�N�N�N�Nr � c �\ � t j t j z dz }t | |�� � S )zhReturn a text string suitable for use as a salt for the hash functions we use to encrypt passwords. z./)r&