����JFIF���������
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
python312
/
lib64
/
python3.12
/
__pycache__
/
Filename :
getpass.cpython-312.pyc
back
Copy
� ����4[Yhf����������������������������d�Z�ddlZddlZddlZddlZddlZg�d�Z�G�d��de�������Zdd�Z dd�Z dd�Zdd �Zd ��Z �ddlZej������������������ej ������������������f�e Zy#�eef$�r� �ddlZe ZY�y#�e$�r�eZY�Y�yw�xY�ww�xY�w) a���Utilities to get a password and/or the current user name. getpass(prompt[, stream]) - Prompt for a password, with echo turned off. getuser() - Get the user name from the environment or password database. GetPassWarning - This UserWarning is issued when getpass() cannot prevent echoing of the password contents while reading. On Windows, the msvcrt module will be used. �����N)�getpass�getuser�GetPassWarningc�������������������������e�Zd�Zy)r���N)�__name__� __module__�__qualname__��������./opt/alt/python312/lib64/python3.12/getpass.pyr���r������s�����r���r���c�����������������������d}t��������j��������������������������5�} �t��������j������������������dt��������j������������������t��������j ������������������z���������}t ��������j������������������|d�������}|j������������������|��������t ��������j������������������|�������}|j������������������|��������|s|}|�� �t'��������j(������������������|�������}|dd�}|dxx���t&��������j*�������������������z��cc<���t&��������j,������������������} t/��������t&��������d�������r| t&��������j0������������������z��} �t'��������j2������������������|| |��������t5��������|�||��������}t'��������j2������������������|| |��������|j7��������������������������� �|j;������������������d��������|cddd��������S�#�t��������$�ry�|j��������������������������� �t��������j������������������j��������������������������}n##�t��������t ��������f$�r�d}t#��������|�|�������}Y�nw�xY�wt��������j������������������}|st��������j$������������������}Y���Ww�xY�w#�t'��������j2������������������|| |��������|j7���������������������������w�xY�w#�t&��������j8������������������$�r'�|���||ur|j���������������������������t#��������|�|�������}Y���w�xY�w#�1�sw�Y���yxY�w)a��Prompt for a password, with echo turned off. Args: prompt: Written on stream to ask for the input. Default: 'Password: ' stream: A writable file object to display the prompt. Defaults to the tty. If no tty is available defaults to sys.stderr. Returns: The seKr3t input. Raises: EOFError: If our input tty or stdin was closed. GetPassWarning: When we were unable to turn echo off on the input. Always restores terminal settings before returning. Nz/dev/ttyzw+�����TCSASOFT)�input� )� contextlib� ExitStack�os�open�O_RDWR�O_NOCTTY�io�FileIO� enter_context� TextIOWrapper�OSError�close�sys�stdin�fileno�AttributeError� ValueError�fallback_getpass�stderr�termios� tcgetattr�ECHO� TCSAFLUSH�hasattrr���� tcsetattr� _raw_input�flush�error�write) �prompt�stream�passwd�stack�fd�ttyr����old�new�tcsetattr_flagss ��� r����unix_getpassr8������s�������F� � � � �5� $�����R�Y�Y�r�{�{�%:�;�B��)�)�B��%�C�����$��$�$�S�)�E�����&������>� :��'�'��+���!�f���A��7�<�<�-�'��")�"3�"3���7�J�/�#�w�'7�'7�7�O�#��%�%�b�/�3�?�'���e�D�F��%�%�b�/�3�?��L�L�N�� ���T���c� � ����� $��K�K�M� :��Y�Y�%�%�'���"�J�/�� :���)�&�&�9�� :����I�I�E������� $��0��%�%�b�/�3�?��L�L�N���=�=�� :��%������&��K�K�M�)�&�&�9�� :��I� � �s�����I#�BE5�I#�"A)H&�%G:�1'H&�I#�5G7�F.�-G7�.G�G7� G�%G7�3I#�6G7�7I#�:)H#�#H&�&6I �I#�I � I#�#I,c������������������f����t���������j������������������t���������j������������������urt��������|�|�������S�|�D�]��}t ��������j ������������������|����������d} �t ��������j��������������������������}|dk(��s|dk(��rn|dk(��rt���������|dk(��r|dd�}n||z���}�;t ��������j ������������������d��������t ��������j ������������������d��������|S�)z:Prompt for password with echo off, using Windows getwch().��� r�����N���)r���r���� __stdin__r#����msvcrt�putwch�getwch�KeyboardInterrupt)r/���r0����c�pws��� r����win_getpassrF���a���s������� �y�y�� � �%����/�/� ��� � �a���� �B� ��M�M�O����9��T� ����;�#�#���9��C�R��B��a��B�����M�M�$�� �M�M�$�� �Ir���c�����������������������t��������j������������������dt��������d���������|st��������j������������������}t��������d|���������t ��������|�|�������S�)Nz%Can not control echo on the terminal.����)� stacklevelz&Warning: Password input may be echoed.)�file)�warnings�warnr���r���r$����printr+���)r/���r0���s��� r���r#���r#���x���s:�������M�M�9�>�� ������ � 2��@��f�f�%�%r���c����������������������|st���������j������������������}|st���������j������������������}t��������|��������}�|�r" �|j ������������������|���������|j���������������������������|j��������������������������}|st���������|d���dk(��r|d�d�}|S�#�t ��������$�rK�|�j ������������������|j������������������d�������}�|�j������������������|j�������������������������}�|j ������������������|���������Y���w�xY�w)N�replacer>���r���)r���r$���r����strr.����UnicodeEncodeError�encode�encoding�decoder,����readline�EOFError)r/���r0���r����lines��� r���r+���r+�������s�������������� � �� ��[�F� � !��L�L�� �� �����>�>��D�����B�x�4���C�R�y���K���"�� !��]�]�6�?�?�I�>�F��]�]�6�?�?�3�F��L�L�� � !�s����A;��;AC�Cc������������������������dD�]'��}�t���������j������������������j������������������|��������}|s�%|c�S��ddl}|j ������������������t��������j ���������������������������������d���S�)z�Get the username from the environment or password database. First try various environment variables, then the password database. This works on Windows as long as USERNAME is set. )�LOGNAME�USER�LNAME�USERNAMEr���N)r����environ�get�pwd�getpwuid�getuid)�name�userr_���s��� r���r���r�������sG�������9���z�z�~�~�d�#����K��9����<�<�� � ��$�Q�'�'r���)z Password: N)r:���NN)�__doc__r���r���r���r���rK����__all__�UserWarningr���r8���rF���r#���r+���r���r%���r&���r*���r����ImportErrorr!���r@���r ���r���r����<module>rh������s������ � ��� �� �� ��� 0���(�[��'�A�H�.&��2(�$ ������w�(�(�(���G��� �^�$������������#�"��#���s/����A��A8�!A)�%A8�)A4�0A8�3A4�4A8