Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
local
/
lib
/
python3.10
/
dist-packages
/
ansible
/
utils
/
__pycache__
📤 Upload
📝 New File
📁 New Folder
Close
Editing: encrypt.cpython-310.pyc
o O�h5 � @ sZ d dl mZ d dlZd dlZd dlmZ d dlmZ d dl m Z mZ d dlm Z d dlmZmZ d dlmZ dZd Zz,d dlZd dlZd d lmZmZ zd dlmZ W n eyb d dlmZ Y nw dZW n eyz Z zeZW Y dZ[ndZ[ww e� Z d gZ!dZ"e"ej#dfdd�Z$ddd�Z%G dd� de&�Z'G dd� de'�Z(ddd�Z)ddd �Z*dS )� )�annotationsN)� namedtuple)� constants)�AnsibleError�AnsibleAssertionError)� text_type)�to_text�to_bytes)�DisplayF)� HasRawSalt� PrefixWrapper)�bcrypt64T� do_encrypt� c sX t � t�std� t� �f ��|du rt�� �nt�|��d�� �fdd�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%s (%s) is not a text_typeN� c 3 s � | ]}�� � �V qd S �N)�choice)�.0�dummy��chars�random_generator� �@/usr/local/lib/python3.10/dist-packages/ansible/utils/encrypt.py� <genexpr>5 s � z"random_password.<locals>.<genexpr>) � isinstancer r �type�random�SystemRandom�Random�join�range)�lengthr �seedr r r �random_password'