{"id":19847831,"url":"https://github.com/mascrypt0/encrypt-myrepo","last_synced_at":"2025-08-08T12:10:16.887Z","repository":{"id":227759852,"uuid":"772146555","full_name":"mascrypt0/encrypt-myrepo","owner":"mascrypt0","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-24T01:48:03.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T09:04:13.189Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mascrypt0.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":"2024-03-14T16:12:46.000Z","updated_at":"2024-04-24T01:48:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"d69dd0f4-091e-4fa1-955e-abb175918385","html_url":"https://github.com/mascrypt0/encrypt-myrepo","commit_stats":null,"previous_names":["mascrypt0/encrypt-myrepo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mascrypt0/encrypt-myrepo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascrypt0%2Fencrypt-myrepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascrypt0%2Fencrypt-myrepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascrypt0%2Fencrypt-myrepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascrypt0%2Fencrypt-myrepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mascrypt0","download_url":"https://codeload.github.com/mascrypt0/encrypt-myrepo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascrypt0%2Fencrypt-myrepo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269417563,"owners_count":24413389,"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-08-08T02:00:09.200Z","response_time":72,"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":[],"created_at":"2024-11-12T13:15:20.103Z","updated_at":"2025-08-08T12:10:16.817Z","avatar_url":"https://github.com/mascrypt0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# encrypt-myrepo\n\nKeep secret files in github repository could be safe as long as it is encrypted. `crypt-in-repo` is a helper for developer who need to save secret files with their code in a safe way.\n\n## Install\n\n```shell\n$ npm i encrypt-myrepo --save-dev\n```\n\n## Usage\n\nCreate config file `encrypt-myrepo.json` in project root folder.\n\nHere is an example:\n```json\n{\n    \"files\": [\n        \"README.md\",\n        \"key.cert\",\n        \"cert/password.json\"\n    ],\n    \"ext\": \".crypt\"\n}\n```\n\nAdd script in package.json\n```json\n{\n    \"scripts\": {\n        \"encrypt\": \"encrypt-myrepo encrypt\",\n        \"decrypt\": \"encrypt-myrepo decrypt\"\n    }\n}\n```\n\nRun the script:\n```shell\n# encrypt\nCIR_PASS=mypassword npm run encrypt\n\n# decrypt\nCIR_PASS=mypassword npm run decrypt\n```\n\n### Example using command line\n\nEncrypt files:\n\n```shell\nnpm run encrypt -- --pass mypassword --file secret.cert ios.p12\n\nnpm run encrypt -- --config ./encrypt-myrepo.json\n```\n\nDecrypt files:\n\n```shell\nnpm run decrypt -- --pass mypassword --file secret.cert ios.p12\n\nnpm run decrypt -- --config ./encrypt-myrepo.json\n```\n\n### Example using environment variables\n\nEncrypt files:\n\n```shell\nCIR_CONFIG=./encrypt-myrepo.json npm run encrypt\n\nCIR_PASS=mypassword npm run encrypt -- --file secret.cert ios.p12\n```\n\nDecrypt files:\n```shell\nCIR_CONFIG=./encrypt-myrepo.json npm run decrypt\n\nCIR_PASS=mypassword npm run decrypt -- --file secret.cert ios.p12\n```\n\n## Documents\n\nOptions can set in config file, command line or environment variables:\n\n| Config file | Command line options | Env variable | Explain |\n|---|---|---|---|\n| pass  | --pass, -p              | CIR_PASS=passphase         | Passphrase for enrypt/decrypt file. |\n| files | --file file1 [file2...]\u003csup\u003e1\u003c/sup\u003e | CIR_FILES=file1[;file2...]\u003csup\u003e2\u003c/sup\u003e | Array of origin files. |\n| ext   | --ext                   | CIR_EXT=.crypt             | Extension of encrypted files. \u003cbr/\u003eDefault value: .aes256 |\n| limit | --limit                 | CIR_SIZELIMIT=1048576          | Limit size of origin file. \u003cbr/\u003e Default value: 1048576 (1MB) |\n\nNotes:\n1. Assign file list in command line follow the [yargs array(key)](https://yargs.js.org/docs/#api-reference-arraykey) standards:\n\n    - `--file file1 --file file2` will be parsed as `['file1','file2']`\n    - `--file file1 file2` will also be parsed as `['file1','file2]`\n\n2. Assign file list in env variable, the filename should seperated by `;`.\n\n`encrypt-myrepo` can assign config file other than default `encrypt-myrepo.json`. With command line options `--config config_file`\n\n`crypt-in-repo`  `--config config_file` to get config file. System environment variable `CIR_CONFIG` has the same functionality.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmascrypt0%2Fencrypt-myrepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmascrypt0%2Fencrypt-myrepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmascrypt0%2Fencrypt-myrepo/lists"}