{"id":27367389,"url":"https://github.com/ribeaud/node-crypto-config","last_synced_at":"2026-05-17T08:31:25.751Z","repository":{"id":159232555,"uuid":"86432916","full_name":"ribeaud/node-crypto-config","owner":"ribeaud","description":"Small Node config extension which supports encryption","archived":false,"fork":false,"pushed_at":"2017-03-29T07:14:17.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-30T03:40:56.957Z","etag":null,"topics":["crypto","node-config","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ribeaud.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":"2017-03-28T08:12:15.000Z","updated_at":"2017-03-28T10:21:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0a5255a-b24e-4c48-b551-5b319665b9aa","html_url":"https://github.com/ribeaud/node-crypto-config","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"d84de572d612e711bae838ff10121e29e37bfeed"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ribeaud/node-crypto-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribeaud%2Fnode-crypto-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribeaud%2Fnode-crypto-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribeaud%2Fnode-crypto-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribeaud%2Fnode-crypto-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ribeaud","download_url":"https://codeload.github.com/ribeaud/node-crypto-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribeaud%2Fnode-crypto-config/sbom","scorecard":{"id":774769,"data":{"date":"2025-08-11","repo":{"name":"github.com/ribeaud/node-crypto-config","commit":"d84de572d612e711bae838ff10121e29e37bfeed"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T03:14:54.734Z","repository_id":159232555,"created_at":"2025-08-23T03:14:54.734Z","updated_at":"2025-08-23T03:14:54.734Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33131871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T06:27:06.342Z","status":"ssl_error","status_checked_at":"2026-05-17T06:26:59.432Z","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":["crypto","node-config","nodejs"],"created_at":"2025-04-13T06:56:23.671Z","updated_at":"2026-05-17T08:31:25.729Z","avatar_url":"https://github.com/ribeaud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM](https://nodei.co/npm/crypto-config.svg?downloads=true\u0026downloadRank=true)](https://nodei.co/npm/crypto-config/)\n[![Build Status](https://travis-ci.org/ribeaud/node-crypto-config.svg?branch=master)](https://travis-ci.org/ribeaud/node-crypto-config)\n\nnode-crypto-config\n=============\n\nSmall **Node** [Config](https://github.com/lorenwest/node-config) extension which supports encryption.\n\nInstallation\n------------\n```bash\n  npm install crypto-config\n```\nUsage\n-----\nThis library is a wrapper around [Config](https://github.com/lorenwest/node-config). On instantiation, each **string** property\nvalue matching the pattern `ENC(\u003cencrypted-value\u003e)` will go through the _handler_ specified in the constructor.\n\n```javascript\nconst assert = require('assert');\nconst crypto = require('crypto');\nconst algorithm = 'aes-256-ctr';\nconst Config = require('crypto-config');\n// The key which has been used to encrypt the password\nconst salt = 'secret';\n\n// This is the handler to decrypt your encrypted values\nfunction decrypt(val) {\n    assert(text, \"Unspecified text\");\n    const decipher = crypto.createDecipher(algorithm, salt);\n    let dec = decipher.update(text, 'hex', 'utf8');\n    dec += decipher.final('utf8');\n    return dec;\n}\n\n// 'crypto-config' instantiation with handler.\nconst config = new Config(val =\u003e {\n    return decrypt(val);\n}).config;\n```\n\nThe **Config** contains two properties: _orig_ (original configuration values) and _config_ (the handled configuration values).\n\nThanks\n------\nTo [Jasypt](http://www.jasypt.org/encrypting-configuration.html) for the inspiration.\n\nLicense\n-------\nMay be freely distributed under the [MIT license](https://raw.githubusercontent.com/ribeaud/node-crypto-config/master/LICENSE).\nCopyright (c) 2017 Christian Ribeaud\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fribeaud%2Fnode-crypto-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fribeaud%2Fnode-crypto-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fribeaud%2Fnode-crypto-config/lists"}