age.recipients package¶
Submodules¶
age.recipients.base module¶
-
class
age.recipients.base.
Recipient
¶ Bases:
object
-
DECRYPTION_KEY_TYPE
: Type[age.keys.base.DecryptionKey]¶
-
ENCRYPTION_KEY_TYPE
: Type[age.keys.base.EncryptionKey]¶
-
abstract
decrypt
(key)¶ - Parameters
key (
DecryptionKey
) –- Return type
-
abstract classmethod
generate
(key, file_key)¶ - Parameters
key (
EncryptionKey
) –file_key (
bytes
) –
-
age.recipients.helpers module¶
-
age.recipients.helpers.
decrypt_file_key
(recipients, keys)¶ - Parameters
recipients (
Collection
[Recipient
]) –keys (
Collection
[DecryptionKey
]) –
- Return type
-
age.recipients.helpers.
generate_recipient_from_key
(key, file_key)¶ - Parameters
key (
EncryptionKey
) –file_key (
bytes
) –
- Return type
age.recipients.scrypt module¶
-
class
age.recipients.scrypt.
SCryptRecipient
(salt, log_cost, encrypted_file_key)¶ Bases:
age.recipients.base.Recipient
-
DECRYPTION_KEY_TYPE
¶ alias of
age.keys.password.PasswordKey
-
ENCRYPTION_KEY_TYPE
¶ alias of
age.keys.password.PasswordKey
-
decrypt
(password_key)¶ - Parameters
password_key (
DecryptionKey
) –- Return type
-
classmethod
generate
(password_key, file_key)¶ - Parameters
password_key (
EncryptionKey
) –file_key (
bytes
) –
-
age.recipients.ssh_ed25519 module¶
-
class
age.recipients.ssh_ed25519.
SSHED25519Recipient
(fingerprint, derived_secret, encrypted_file_key)¶ Bases:
age.recipients.base.Recipient
- Parameters
-
DECRYPTION_KEY_TYPE
¶ alias of
age.keys.ed25519.Ed25519PrivateKey
-
ENCRYPTION_KEY_TYPE
¶ alias of
age.keys.ed25519.Ed25519PublicKey
-
decrypt
(password_key)¶ - Parameters
password_key (
DecryptionKey
) –- Return type
-
classmethod
generate
(password_key, file_key)¶ - Parameters
password_key (
EncryptionKey
) –file_key (
bytes
) –
age.recipients.ssh_rsa module¶
-
class
age.recipients.ssh_rsa.
SSHRSARecipient
(fingerprint, encrypted_file_key)¶ Bases:
age.recipients.base.Recipient
-
DECRYPTION_KEY_TYPE
¶ alias of
age.keys.rsa.RSAPrivateKey
-
ENCRYPTION_KEY_TYPE
¶ alias of
age.keys.rsa.RSAPublicKey
-
decrypt
(password_key)¶ - Parameters
password_key (
DecryptionKey
) –- Return type
-
classmethod
generate
(password_key, file_key)¶ - Parameters
password_key (
EncryptionKey
) –file_key (
bytes
) –
-
age.recipients.x25519 module¶
-
class
age.recipients.x25519.
X25519Recipient
(derived_secret, encrypted_file_key)¶ Bases:
age.recipients.base.Recipient
-
DECRYPTION_KEY_TYPE
¶ alias of
age.keys.agekey.AgePrivateKey
-
ENCRYPTION_KEY_TYPE
¶ alias of
age.keys.agekey.AgePublicKey
-
decrypt
(private_key)¶ - Parameters
private_key (
DecryptionKey
) –- Return type
-
classmethod
generate
(public_key, file_key)¶ - Parameters
public_key (
EncryptionKey
) –file_key (
bytes
) –
-