Navigation

Quick Start

Overview

This guide shows you how to encrypt a document with automatic
() and a MongoDB driver.

After completing this guide, you should have the following knowledge and software:

  • Knowledge of the steps to configure a driver to encrypt fields in a document.
  • A working, but not production-ready, client application that utilizes automatic .

Important

Do Not Use this Application In Production

Since this example application stores an encryption key on your application’s filesystem, you risk unauthorized access to the key or loss of the key to decrypt your data.

To view a tutorial that demonstrates how to create a production-ready -enabled application, see <csfle-tutorial-automatic-encryption>.

Before You Get Started

To complete and run the code in this guide, you need to set up your development environment as shown in the Installation Requirements page.

Select the programming language for which you want to see code examples for from the Select your language dropdown menu on the right side of the page.

See

Full Application

To view the complete runnable application code for this tutorial, go to the following link:

Procedure

# You are viewing the Python driver code examples.
# Use the dropdown menu to select a different driver.
// You are viewing the Java synchronous driver code examples.
// Use the dropdown menu to select a different driver.
// You are viewing the Node.js driver code examples.
// Use the dropdown menu to select a different driver.
// You are viewing the C# driver code examples.
// Use the dropdown menu to select a different driver.
// You are viewing the Golang driver code examples.
// Use the dropdown menu to select a different driver.

Learn More

To view a tutorial on production-ready with a remote KMS, see <csfle-tutorial-automatic-encryption>.

To learn how works, see <csfle-fundamentals>.

To learn more about the topics mentioned in this guide, see the following links: