l.s.c.m.NaClEncryptedContainerBase : class documentation

Part of lp.services.crypto.model View In Hierarchy

Known subclasses: lp.services.crypto.tests.test_model.FakeEncryptedContainer, lp.snappy.model.snap.SnapStoreSecretsEncryptedContainer

A container that can encrypt and decrypt data using NaCl.

See IEncryptedContainer.

Method public_key_bytes The serialised public key as a byte string.
Method public_key The public key as a L{nacl.public.PublicKey}.
Method can_encrypt Undocumented
Method encrypt See IEncryptedContainer.
Method private_key_bytes The serialised private key as a byte string.
Method private_key The private key as a L{nacl.public.PrivateKey}.
Method can_decrypt Undocumented
Method decrypt See IEncryptedContainer.
@property
def public_key_bytes(self):
The serialised public key as a byte string.

Concrete implementations must provide this.

@property
def public_key(self):
The public key as a L{nacl.public.PublicKey}.
@property
def can_encrypt(self):
Undocumented
def encrypt(self, data):
See IEncryptedContainer.
@property
def private_key_bytes(self):
The serialised private key as a byte string.

Concrete implementations must provide this.

@property
def private_key(self):
The private key as a L{nacl.public.PrivateKey}.
@property
def can_decrypt(self):
Undocumented
def decrypt(self, data):
See IEncryptedContainer.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.