Code Examples for Client-Side Field Level Encryption in Confluent Cloud๏ƒ

The following code examples and demos (for Java, Go, C#/.NET, JavaScript, and Python) can be used to help you use client-side field level encryption in Confluent Cloud. These examples are available in the Client-Side Field Level Encryption (CSFLE) Examples GitHub repository.

Requirements๏ƒ

Examples๏ƒ

Java๏ƒ

These following examples for producers and consumers use the supported Java client for Apache Kafkaยฎ. For details, see Apache Kafka Java Client.

Go๏ƒ

These examples use the supported Golang client for Apache Kafkaยฎ. For details, see Confluentโ€™s Golang Client for Apache Kafka.

Avro๏ƒ

JSON๏ƒ

Protobuf๏ƒ

C#/.NET๏ƒ

The following examples use Confluentโ€™s .NET client for Apache Kafkaยฎ. For details, see Confluentโ€™s .NET client for Apache Kafka.

Avro๏ƒ

JSON๏ƒ

Protobuf๏ƒ

JavaScript๏ƒ

The following examples use the supported Confluent JavaScript Client for Apache Kafkaยฎ. For details, see Confluentโ€™s JavaScript Client for Apache Kafka.

Avro๏ƒ

Python๏ƒ

The following examples use the supported Python client for Apache Kafkaยฎ. For details, see Confluentโ€™s Python Client for Apache Kafka.

Avro๏ƒ

JSON๏ƒ

Protobuf๏ƒ