← Back
Editing: file.cpython-311.pyc
� <&c � � � d dl mZ d dlZd dlZd dlZd dlZd dlZd dlmZ ddl m Z d dlmZm Z mZ G d� de� � Z G d � d � � Z G d� dee� � ZdS ) � )�with_statementN)� properties� )�escape)�Keyring�decodebytes�encodebytesc �4 � e Zd ZdZdZ dZdZdZd d�Zd d�Z dS ) �PlaintextKeyringz&Simple File Keyring with no encryptiong �?zkeyring_pass.cfgzno encyption�1.0Nc � � |S )z<Directly return the password itself, ignore associated data.� )�self�password�assocs �3/usr/lib/python3/dist-packages/keyrings/alt/file.py�encryptzPlaintextKeyring.encrypt s � ��� c � � |S )z;Directly return encrypted password, ignore associated data.r )r �password_encryptedr s r �decryptzPlaintextKeyring.decrypt s � �!�!r �N) �__name__� __module__�__qualname__�__doc__�priority�filename�scheme�versionr r r r r r r sY � � � � � �0�0��H�7�!�H� �F��G�� � � �"� "� "� "� "� "r r c �F � e Zd ZdZdZdZdZd� Zed� � � Z d� Z d� Zd S ) � Encryptedz0 PyCryptodome-backed Encryption support z[PBKDF2] AES256.CFBr � c �n � t | � � � | � � � � � d S r )�vars�update�_get_crypto_impl�r s r �__init__zEncrypted.__init__+ s. � ��T� � ���$�/�/�1�1�2�2�2�2�2r c � � ddl m} ddlm} dd lm} n"# t $ r ddlm} ddlm} dd l m} Y nw xY wt � � S )Nr )�KDF)�AES)�Cryptodome.Protocolr+ �Cryptodome.Cipherr, �Cryptodome.Random�Random�ImportError�Crypto.Protocol� Crypto.Cipher� Crypto.Random�locals)r+ r, r0 s r r'