Skip to main content

client.encryption

EncryptionClient Objects

class EncryptionClient()

Represents a client for interacting with the Bloock Encryption service.

__init__

def __init__(config_data=None) -> None

Creates a new instance of the EncryptionClient with the provided configuration.

generate_rsa_keypair

def generate_rsa_keypair() -> KeyPair

GenerateRsaKeyPair generates an RSA key pair for encryption.

Will be deleted in future versions. ...deprecated:: 2.8.0 Use KeyClient.newLocalKey function instead.

encrypt

def encrypt(record: Record, encrypter: Encrypter) -> Record

Encrypts a Bloock record using the specified encrypter.

decrypt

def decrypt(record: Record, decrypter: Encrypter) -> Record

Decrypts a Bloock record using the specified decrypter.

get_encryption_alg

def get_encryption_alg(record: Record) -> EncryptionAlg

Gets the encryption algorithm used for a Bloock record.