{"id":23038282,"url":"https://github.com/jihyunlab/web-secret","last_synced_at":"2025-03-22T05:18:57.455Z","repository":{"id":248701035,"uuid":"829442920","full_name":"jihyunlab/web-secret","owner":"jihyunlab","description":"JihyunLab Web secret.","archived":false,"fork":false,"pushed_at":"2024-07-18T09:36:38.000Z","size":186,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-16T08:48:32.841Z","etag":null,"topics":["cipher","crypto","decryption","encryption","env","secret","web"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jihyunlab.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-07-16T12:42:28.000Z","updated_at":"2024-07-18T09:36:44.000Z","dependencies_parsed_at":"2024-07-16T16:08:37.841Z","dependency_job_id":null,"html_url":"https://github.com/jihyunlab/web-secret","commit_stats":null,"previous_names":["jihyunlab/web-secret"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihyunlab%2Fweb-secret","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihyunlab%2Fweb-secret/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihyunlab%2Fweb-secret/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihyunlab%2Fweb-secret/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jihyunlab","download_url":"https://codeload.github.com/jihyunlab/web-secret/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244908051,"owners_count":20529969,"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":["cipher","crypto","decryption","encryption","env","secret","web"],"created_at":"2024-12-15T18:17:38.424Z","updated_at":"2025-03-22T05:18:57.428Z","avatar_url":"https://github.com/jihyunlab.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @jihyunlab/web-secret\n\n[![Version](https://img.shields.io/npm/v/@jihyunlab/web-secret.svg?style=flat-square)](https://www.npmjs.com/package/@jihyunlab/web-secret?activeTab=versions) [![Downloads](https://img.shields.io/npm/dt/@jihyunlab/web-secret.svg?style=flat-square)](https://www.npmjs.com/org/jihyunlab) [![Last commit](https://img.shields.io/github/last-commit/jihyunlab/web-secret.svg?style=flat-square)](https://github.com/jihyunlab/web-secret/graphs/commit-activity) [![License](https://img.shields.io/github/license/jihyunlab/web-secret.svg?style=flat-square)](https://github.com/jihyunlab/web-secret/blob/master/LICENSE) [![Linter](https://img.shields.io/badge/linter-eslint-blue?style=flat-square)](https://eslint.org) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\\\n[![Build](https://github.com/jihyunlab/web-secret/actions/workflows/build.yml/badge.svg)](https://github.com/jihyunlab/web-secret/actions/workflows/build.yml) [![Lint](https://github.com/jihyunlab/web-secret/actions/workflows/lint.yml/badge.svg)](https://github.com/jihyunlab/web-secret/actions/workflows/lint.yml) [![codecov](https://codecov.io/gh/jihyunlab/web-secret/graph/badge.svg?token=K2536J64LQ)](https://codecov.io/gh/jihyunlab/web-secret)\n\n@jihyunlab/web-secret provides functionality in web applications to decrypt .env files encrypted with [@jihyunlab/secret-cli](https://www.npmjs.com/package/@jihyunlab/secret-cli).\n\nThe encryption function is implemented with [@jihyunlab/web-crypto](https://www.npmjs.com/package/@jihyunlab/web-crypto) and provides encryption for AES 256 GCM.\n\n## Installation\n\n```bash\nnpm i @jihyunlab/web-secret\n```\n\n## Usage\n\nDecrypt the .env key value by directly entering the separately managed encryption key.\n\n```\nimport { CIPHER, Env } from '@jihyunlab/web-secret';\n\nconst cipher = await Env.createCipher(CIPHER.AES_256_GCM, 'YourSecretKey');\nconst value = await cipher.decrypt(process.env.ENV_KEY);\n```\n\n## Encryption key\n\nIn web applications, since it's not possible to retrieve system or user environment variables, it's recommended to manage and directly input encryption keys separately.\n\n## Credits\n\nAuthored and maintained by JihyunLab \u003c\u003cinfo@jihyunlab.com\u003e\u003e\n\n## License\n\nOpen source [licensed as MIT](https://github.com/jihyunlab/web-secret/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjihyunlab%2Fweb-secret","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjihyunlab%2Fweb-secret","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjihyunlab%2Fweb-secret/lists"}