{"id":25320460,"url":"https://github.com/heeeyflo/envienc","last_synced_at":"2026-02-21T23:05:08.647Z","repository":{"id":159567816,"uuid":"613032056","full_name":"heeeyflo/envienc","owner":"heeeyflo","description":"🔐 Encrypt dotenv, YAML and Hpp values keeping the rest of file intact","archived":false,"fork":false,"pushed_at":"2024-02-22T22:30:11.000Z","size":640,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"release","last_synced_at":"2025-10-25T23:27:35.381Z","etag":null,"topics":["dotenv","encrypt","hpp","yaml"],"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/heeeyflo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-12T17:35:46.000Z","updated_at":"2024-02-22T22:46:04.000Z","dependencies_parsed_at":"2024-02-03T17:25:52.981Z","dependency_job_id":"4f44d865-1ecd-4304-b213-a52ff456c193","html_url":"https://github.com/heeeyflo/envienc","commit_stats":null,"previous_names":["heeeyflo/envienc","imcatwhocode/envienc"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/heeeyflo/envienc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heeeyflo%2Fenvienc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heeeyflo%2Fenvienc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heeeyflo%2Fenvienc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heeeyflo%2Fenvienc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heeeyflo","download_url":"https://codeload.github.com/heeeyflo/envienc/tar.gz/refs/heads/release","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heeeyflo%2Fenvienc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29696955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T18:18:25.093Z","status":"ssl_error","status_checked_at":"2026-02-21T18:18:22.435Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dotenv","encrypt","hpp","yaml"],"created_at":"2025-02-13T21:49:19.092Z","updated_at":"2026-02-21T23:05:08.620Z","avatar_url":"https://github.com/heeeyflo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# envienc\n\nEnvienc is a command-line tool for encrypting dotenv, YAML and .h/.hpp files, while keeping keys,\ncomments, and overall structure untouched.\n\nIt encrypts only the values, leaving the rest of the file intact.\n\n## Installation\n\nYou need to have Node.js installed on your system. Then, run the following commands:\n\n```bash\n# Install envienc globally\nnpm install -g envienc\n\n# ... or use npx to run it without installing\nnpx envienc\n\n# ... or install it to your project and run it from there\ncd your-project\nnpm install --save-dev envienc\nnpx envienc\n```\n\n## Quick start\n\n```bash\n# First, let's init a new project.\n# This will create a .enviencrc file in your project root.\n# Using \"-g\" flag, you can specify globs for dotenv and YAML files.\nnpx envienc init -g \".env\" -g \".env.*\" -g \"deployments/*.yml\"\n\n# Then, add unencrypted files to .gitignore if applicable.\n# This will prevent you from accidentally committing unencrypted files.\n# Make sure that globs in .gitignore wouldn't match encrypted files with \".envienc\" suffix\n\n# Now you can encrypt your files.\nnpx envienc encrypt\n\n# When you need to decrypt your files, run\nnpx envienc decrypt\n\n# Help is here anytime you need it\nnpx envienc --help\n```\n\n## Exceptions\n\nYou can skip specific configuration entries from being encrypted.\n\nUse `@envienc no-encrypt` comment:\n\n## For dotenv\n\n```dotenv\n# @envienc no-encrypt\nPUBLIC_INFO=This variable wouldn't be encrypted\n\n# But this one would\nMY_SECRET=hellokitty\n```\n\n## For YAML\n\n```yaml\nnested:\n  - item1:\n      # Flag below would prevent encryption of entire \"item1\" entry\n      # @envienc no-encrypt\n      key1: value1\n      key2: value2\n      subitems:\n        - subitem1\n        - subitem2\n  # \"item2\" will be encrypted as expected\n  - item2:\n      keyA: valueA\n      keyB: valueB\n\ncolors:\n  red: '#FF0000'\n  green: '#00FF00'\n  # Flag below would prevent encryption only of \"blue\" entry\n  blue: '#0000FF' # @envienc no-encrypt\n  random:\n    rgb: [\n        128,\n        # Flag below would prevent encryption only of \"255\" value\n        255, # @envienc no-encrypt\n        64,\n      ]\n    hex: '#FFFFFF'\n\n# Entire \"branding\" entry will be kept unencrypted\n# @envienc no-encrypt\nbranding:\n  logo_uri: 'https://example.com/logo.png'\n  name: 'My App'\n  description: 'My App is a great app'\n```\n\n## For .H/.HPP\n\n```c\n// Will be encrypted\n#define SECURE_STUFF \"my_sweetest_secret\"\n\n// Will not be encrypted\n#define NON_SECURE_STUFF /* @envienc no-encrypt */ \"not_secret_at_all\"\n```\n\n## Log\n\nEnvienc uses `pino` for logging. By default, output is prettified using `pino-pretty` package.\nIf you want to output logs in default JSON format, set `LOG_JSON` environment variable to `true`.\n\n```bash\n# This will output logs in Pino's default JSON format\nLOG_JSON=true npx envienc encrypt\n```\n\n## Encryption\n\nUnder the hood, envienc uses the AES-256-GCM algorithm to encrypt the values.\n\n- To produce the encryption key, it uses the PBKDF2 algorithm with 600,000 iterations.\n- Salt for PBKDF2 is generated using Node's built-in CSPRNG via the `crypto.randomBytes()` method.\n  Salt is unique per project and stored in `.enviencrc` configuration file.\n- Each encrypted value has its own unique IV and auth tag stored with ciphertext.\n\n## Password input\n\nYou can provide the password in several ways. The order of precedence is as follows:\n\n1. Using the `--password` option. Please, don't ever do this in production.\n2. Using the `ENVIENC_PASSWORD` environment variable.\n3. Using the interactive prompt when encrypting or decrypting.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheeeyflo%2Fenvienc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheeeyflo%2Fenvienc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheeeyflo%2Fenvienc/lists"}