{"id":15538006,"url":"https://github.com/kevinalbs/markup","last_synced_at":"2025-11-11T23:06:05.412Z","repository":{"id":151749431,"uuid":"571580990","full_name":"kevinAlbs/markup","owner":"kevinAlbs","description":"A utility for testing the Automatic Encryption Shared Library","archived":false,"fork":false,"pushed_at":"2023-01-19T20:42:30.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-09T12:04:14.642Z","etag":null,"topics":["csfle"],"latest_commit_sha":null,"homepage":"","language":"Python","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/kevinAlbs.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-11-28T12:49:30.000Z","updated_at":"2022-11-28T12:50:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"3139e205-1422-4b01-ba88-b046ab0e9345","html_url":"https://github.com/kevinAlbs/markup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kevinAlbs/markup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinAlbs%2Fmarkup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinAlbs%2Fmarkup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinAlbs%2Fmarkup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinAlbs%2Fmarkup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinAlbs","download_url":"https://codeload.github.com/kevinAlbs/markup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinAlbs%2Fmarkup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283943911,"owners_count":26920582,"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","status":"online","status_checked_at":"2025-11-11T02:00:06.610Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["csfle"],"created_at":"2024-10-02T12:01:03.205Z","updated_at":"2025-11-11T23:06:05.388Z","avatar_url":"https://github.com/kevinAlbs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"A utility for testing the [Automatic Encryption Shared Library](https://www.mongodb.com/docs/manual/core/queryable-encryption/reference/shared-library/).\n\nExamples:\n\n```\n$ python markup.py --version --libpath ~/bin/crypt_shared-6.0.0/lib/mongo_crypt_v1.dylib \nmongo_crypt_v1-dev-6.0.0\n```\n\n```\n$ cat example-input.json | python markup.py --libpath ~/bin/crypt_shared-6.0.0/lib/mongo_crypt_v1.dylib \n{\n    \"hasEncryptionPlaceholders\": true,\n    \"schemaRequiresEncryption\": true,\n    \"result\": {\n        \"find\": \"test\",\n        \"filter\": {\n            \"value\": {\n                \"$eq\": {\n                    \"$binary\": {\n                        \"base64\": \"A1gAAAAQdAACAAAAEGEAAgAAAAVraQAQAAAABBI0VngSNJh2EjQSNFZ4kBIFa3UAEAAAAAQSNFZ4EjSYdhI0EjRWeJASEHYAQOIBABJjbQAAAAAAAAAAAAA=\",\n                        \"subType\": \"06\"\n                    }\n                }\n            }\n        },\n        \"encryptionInformation\": {\n            \"type\": {\n                \"$numberInt\": \"1\"\n            },\n            \"schema\": {\n                \"db.test\": {\n                    \"escCollection\": \"esc\",\n                    \"eccCollection\": \"ecc\",\n                    \"ecocCollection\": \"ecoc\",\n                    \"fields\": [\n                        {\n                            \"keyId\": {\n                                \"$binary\": {\n                                    \"base64\": \"EjRWeBI0mHYSNBI0VniQEg==\",\n                                    \"subType\": \"04\"\n                                }\n                            },\n                            \"path\": \"value\",\n                            \"bsonType\": \"int\",\n                            \"queries\": {\n                                \"queryType\": \"equality\",\n                                \"contention\": {\n                                    \"$numberLong\": \"0\"\n                                }\n                            }\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}\n```\n\n`markup.py` depends on cffi. Use `pip install cffi`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinalbs%2Fmarkup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinalbs%2Fmarkup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinalbs%2Fmarkup/lists"}