{"id":20566269,"url":"https://github.com/telkomdev/mongodb-client-side-level-encryption-example","last_synced_at":"2025-03-06T08:47:10.886Z","repository":{"id":107252328,"uuid":"527189157","full_name":"telkomdev/mongodb-client-side-level-encryption-example","owner":"telkomdev","description":"mongodb-client-side-level-encryption-example","archived":false,"fork":false,"pushed_at":"2022-08-21T11:41:48.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T20:19:07.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/telkomdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-21T11:41:18.000Z","updated_at":"2022-08-23T03:36:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"b97a94da-7ca8-40e1-b190-3cd39151f3f0","html_url":"https://github.com/telkomdev/mongodb-client-side-level-encryption-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telkomdev%2Fmongodb-client-side-level-encryption-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telkomdev%2Fmongodb-client-side-level-encryption-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telkomdev%2Fmongodb-client-side-level-encryption-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telkomdev%2Fmongodb-client-side-level-encryption-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telkomdev","download_url":"https://codeload.github.com/telkomdev/mongodb-client-side-level-encryption-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242179259,"owners_count":20084940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T04:40:50.774Z","updated_at":"2025-03-06T08:47:10.873Z","avatar_url":"https://github.com/telkomdev.png","language":"JavaScript","readme":"### MongoDB manual encryption mechanism of Client-Side Field Level Encryption (CSFLE)\n\n### Reference\n- https://www.mongodb.com/docs/manual/core/csfle/fundamentals/manual-encryption/\n- https://github.com/mongodb-university/docs-in-use-encryption-examples\n\n### Getting started\n\n#### Run MongoDB Server\n```shell\n$ docker-compose up\n```\n\n#### Generate Master Key\n```shell\n$ node master_key_gen.js\n```\n\n#### Create Key Data\n\nOpen `mongo.js`\n\nRun `createKeyVault` function\n\n`mongo.js`\n```javascript\n...............................\n.................................\ncreateKeyVault().catch(e =\u003e console.log(e));\n\n// insertData().catch(e =\u003e console.log(e));\n\n//readData().catch(e =\u003e console.log(e));\n```\n\nRun\n```shell\n$ node mongo.js\n```\n\n#### Insert Data\n\nOpen `mongo.js`\n\nRun `insertData` function\n\n`mongo.js`\n```javascript\n...............................\n.................................\n// createKeyVault().catch(e =\u003e console.log(e));\n\ninsertData().catch(e =\u003e console.log(e));\n\n//readData().catch(e =\u003e console.log(e));\n```\n\nRun\n```shell\n$ node mongo.js\n```\n\n#### Read Data\n\nOpen `mongo.js`\n\nRun `readData` function\n\n`mongo.js`\n```javascript\n...............................\n.................................\n// createKeyVault().catch(e =\u003e console.log(e));\n\n// insertData().catch(e =\u003e console.log(e));\n\nreadData().catch(e =\u003e console.log(e));\n```\n\nRun\n```shell\n$ node mongo.js\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelkomdev%2Fmongodb-client-side-level-encryption-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelkomdev%2Fmongodb-client-side-level-encryption-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelkomdev%2Fmongodb-client-side-level-encryption-example/lists"}