Encryption Types

class b2sdk._internal.encryption.types.EncryptionAlgorithm(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Encryption algorithm.

AES256 = 'AES256'
get_length()[source]
Return type:

int

class b2sdk._internal.encryption.types.EncryptionMode(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Encryption mode.

UNKNOWN = None

unknown encryption mode (sdk doesn’t know or used key has no rights to know)

NONE = 'none'

no encryption (plaintext)

SSE_B2 = 'SSE-B2'

server-side encryption with key maintained by B2

SSE_C = 'SSE-C'

server-side encryption with key provided by the client

can_be_set_as_bucket_default()[source]