{"id":18498804,"url":"https://github.com/smallcase/field-level-encryption","last_synced_at":"2025-05-14T05:34:16.934Z","repository":{"id":112757946,"uuid":"392987836","full_name":"smallcase/Field-Level-Encryption","owner":"smallcase","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-08T14:15:35.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-06T11:02:27.666Z","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/smallcase.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":"2021-08-05T09:45:36.000Z","updated_at":"2022-03-25T07:29:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb43d487-7c6f-42d4-9ba6-75df970164fe","html_url":"https://github.com/smallcase/Field-Level-Encryption","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/smallcase%2FField-Level-Encryption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallcase%2FField-Level-Encryption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallcase%2FField-Level-Encryption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallcase%2FField-Level-Encryption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallcase","download_url":"https://codeload.github.com/smallcase/Field-Level-Encryption/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076977,"owners_count":22010630,"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-06T13:42:38.437Z","updated_at":"2025-05-14T05:34:16.890Z","avatar_url":"https://github.com/smallcase.png","language":"JavaScript","readme":"# Field Level Encryption\n\n## Running the project\n\n1. Export env file\n2. Install MongoDB\n3. Install Node Js\n4. Run following commands\n\n```\nnpm install\nnode index\n```\n\n## API\n\n### 1. Get Data\n\n```\ncurl -XGET 'localhost:8900/?email=sample@example.com'\n```\n\n### 2. Add Data\n\n```\ncurl -XPOST -H \"Content-type: application/json\" -d '{\n    \"name\": \"Test User\",\n     \"email\": \"sample@example.com\",\n     \"phone\": \"9999999999\"\n}' 'localhost:8900/'\n```\n\n### 3. Agreegation\n\n```\ncurl -XGET 'localhost:8900/aggregate?email=sample@example.com'\n```\n\n## Benchmarking\n\n### 1. Install autocannon\n\n```\nnpm i auto autocannon\n```\n\n### 2. Command\n\n```\nautocannon -c 100 -d 5 http://localhost:8900/?email=sample@example.com\n```\n\n## 3. Benchmarking the Get API\n\n### a. Disabling Encryption\n\n-   Remove getters and setters from users model to disable encryption\n\n### b. Enabling Encryption\n\n-   Add the getters and setters back to enable encryption\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallcase%2Ffield-level-encryption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallcase%2Ffield-level-encryption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallcase%2Ffield-level-encryption/lists"}