This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Simple demonstration using MongoDB Client-Side Field Level Encryption (local key version) | |
Requires Community or (preferrably) Enterprise Shell and a MongoDB 4.2+ database | |
Local, stand-alone, or Atlas MongoDB will all work. | |
To use this, just open Mongo shell, with this file, e.g.: | |
mongo --nodb --shell hello_world_shell_local.js | |
# For a self-signed cert: mongo --tls --tlsCAFile /opt/mongodb/certs/ca.pem --shell hello_world_shell_local.js |