{"id":24173087,"url":"https://github.com/dimmadont/py-crypt-sindresorhus-conf","last_synced_at":"2026-04-09T16:55:37.136Z","repository":{"id":271820014,"uuid":"914650670","full_name":"DimmaDont/py-crypt-sindresorhus-conf","owner":"DimmaDont","description":"Python library for encrypting and decrypting `sindresorhus/conf` files.","archived":false,"fork":false,"pushed_at":"2025-03-01T01:02:52.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T01:23:58.164Z","etag":null,"topics":["conf","config","electron-store","encryption","json","node-module","npm-package","sindresorhus","storage"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DimmaDont.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-01-10T02:54:19.000Z","updated_at":"2025-03-01T00:59:36.000Z","dependencies_parsed_at":"2025-01-10T05:34:36.100Z","dependency_job_id":null,"html_url":"https://github.com/DimmaDont/py-crypt-sindresorhus-conf","commit_stats":null,"previous_names":["dimmadont/py-crypt-sindresorhus-conf"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimmaDont%2Fpy-crypt-sindresorhus-conf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimmaDont%2Fpy-crypt-sindresorhus-conf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimmaDont%2Fpy-crypt-sindresorhus-conf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimmaDont%2Fpy-crypt-sindresorhus-conf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DimmaDont","download_url":"https://codeload.github.com/DimmaDont/py-crypt-sindresorhus-conf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241509656,"owners_count":19974071,"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":["conf","config","electron-store","encryption","json","node-module","npm-package","sindresorhus","storage"],"created_at":"2025-01-13T01:14:22.402Z","updated_at":"2026-04-09T16:55:37.067Z","avatar_url":"https://github.com/DimmaDont.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-crypt-sindresorhus-conf\n\nThis Python library encrypts/decrypts [`sindresorhus/conf`](https://github.com/sindresorhus/conf) and [`sindresorhus/electron-store`](https://github.com/sindresorhus/electron-store) files.\n\n## Installation\n```bash\n# cryptography\npip install \"crypt_sindresorhus_conf[cryptography] @ git+https://github.com/DimmaDont/py-crypt-sindresorhus-conf\"\n\n# PyCryptodome\npip install \"crypt_sindresorhus_conf[pycryptodome] @ git+https://github.com/DimmaDont/py-crypt-sindresorhus-conf\"\n```\n\n## Usage example\n#### Encryption\n```python\nimport json\nimport os\n\nfrom crypt_sindresorhus_conf import CryptSindresorhusConf\n\nkey = b\"hello there\"\niv = os.urandom(16)\nconf_crypt = CryptSindresorhusConf(key, iv)\nencrypted = conf_crypt.encrypt(json.dumps({\"foo\": \"bar\"}))\n```\n#### Decryption\n```python\nimport json\n\nfrom crypt_sindresorhus_conf import CryptSindresorhusConf\n\nwith open(\"file.json\", \"rb\") as f:\n    encrypted = f.read()\n\nkey = b\"hello there\"\niv = encrypted[:16]\nconf_crypt = CryptSindresorhusConf(key, iv)\nplaintext = conf_crypt.decrypt(encrypted)\ndata = json.loads(plaintext)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimmadont%2Fpy-crypt-sindresorhus-conf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimmadont%2Fpy-crypt-sindresorhus-conf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimmadont%2Fpy-crypt-sindresorhus-conf/lists"}