{"id":16977104,"url":"https://github.com/rickyes/jasypt","last_synced_at":"2026-02-25T02:32:47.172Z","repository":{"id":34911570,"uuid":"189328276","full_name":"rickyes/jasypt","owner":"rickyes","description":"org.jasypt.util.text.BasicTextEncryptor for Node.js","archived":false,"fork":false,"pushed_at":"2023-03-07T03:54:50.000Z","size":227,"stargazers_count":16,"open_issues_count":6,"forks_count":7,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-10T01:55:33.744Z","etag":null,"topics":["basictext","basictextencryptor","jasypt","java","nodejs"],"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/rickyes.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":"2019-05-30T02:03:47.000Z","updated_at":"2025-02-14T09:30:26.000Z","dependencies_parsed_at":"2024-06-18T22:50:11.298Z","dependency_job_id":"2ee21f47-ecc9-4866-aeda-312f27d25208","html_url":"https://github.com/rickyes/jasypt","commit_stats":{"total_commits":36,"total_committers":4,"mean_commits":9.0,"dds":"0.33333333333333337","last_synced_commit":"3051b99cfe32c7d96f6c5a6ecada9402ed0d7bd3"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rickyes/jasypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickyes%2Fjasypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickyes%2Fjasypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickyes%2Fjasypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickyes%2Fjasypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rickyes","download_url":"https://codeload.github.com/rickyes/jasypt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickyes%2Fjasypt/sbom","scorecard":{"id":775912,"data":{"date":"2025-08-11","repo":{"name":"github.com/rickyes/jasypt","commit":"3051b99cfe32c7d96f6c5a6ecada9402ed0d7bd3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.yml:1","Info: no jobLevel write permissions found"],"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Code-Review","score":0,"reason":"Found 2/28 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":"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":"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":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/rickyes/jasypt/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/rickyes/jasypt/node.js.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/node.js.yml:31","Warn: npmCommand not pinned by hash: .github/workflows/node.js.yml:32","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   3 npmCommand dependencies pinned"],"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T03:34:15.205Z","repository_id":34911570,"created_at":"2025-08-23T03:34:15.205Z","updated_at":"2025-08-23T03:34:15.205Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29809086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T22:43:48.403Z","status":"online","status_checked_at":"2026-02-25T02:00:07.329Z","response_time":61,"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":["basictext","basictextencryptor","jasypt","java","nodejs"],"created_at":"2024-10-14T01:28:04.466Z","updated_at":"2026-02-25T02:32:47.157Z","avatar_url":"https://github.com/rickyes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Jasypt\n\n[![NPM version][npm-image]][npm-url]\n[![Codacy][codacy-image]][codacy-url]\n[![build status][build-image]][build-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![npm downloads/month][downloads-month-image]][download-url]\n[![npm downloads][downloads-image]][download-url]\n\n\n[npm-image]: https://img.shields.io/npm/v/jasypt.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/jasypt\n[build-image]: https://github.com/rickyes/jasypt/actions/workflows/node.js.yml/badge.svg?branch=master\n[build-url]: https://github.com/rickyes/jasypt\n[codecov-image]: https://codecov.io/gh/rickyes/jasypt/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/github/rickyes/jasypt?branch=master\n[downloads-month-image]: https://img.shields.io/npm/dm/jasypt.svg?style=flat-square\n[download-url]: https://npmjs.org/package/jasypt\n[downloads-image]: https://img.shields.io/npm/dt/jasypt.svg\n[codacy-image]: https://app.codacy.com/project/badge/Grade/7a96dea4ed924752b2f131c0ab5ec812\n[codacy-url]: https://app.codacy.com/manual/rickyes/jasypt\n\norg.jasypt.util.text.BasicTextEncryptor for Node.js\n\n#### 背景\n`Spring Boot` 集成 `jasypt` 对配置项进行加密，为了与 `Java` 体系保持一致，于是有了 `Jasypt.js`\n\n#### 使用\n**`SDK`**\n``` js\n'use strict';\n\nconst Jasypt = require('jasypt');\nconst jasypt = new Jasypt();\n// 设置秘钥\njasypt.setPassword('G0CvDz7oJn60');\n// 加密\nconst encryptMsg = jasypt.encrypt('admin');\n// 解密\nconst decryptMsg = jasypt.decrypt(encryptMsg);\n```\n\n**`命令行`**\n``` sh\n$ jasypt -h\n\nUsage: jasypt [options]\n\nOptions:\n  -v, --version               output the version number\n  -p, --password \u003cpwd\u003e        The secret key\n  -e, --encrypt \u003cmsg\u003e         Text to be encrypting\n  -d, --decrypt \u003cencryptMsg\u003e  Text to be decrypting\n  -h, --help                  output usage information\n\nExamples:\n\n  $ jasypt -p 0x1995 -e admin\n  $ jasypt -p 0x1995 -d nsbC5r0ymz740/aURtuRWw==\n```\n\n#### 解密加密项 for Spring Boot\n``` js\n// 对配置项的ENC(xxx)进行解密\nconst data = {\n  code: 42,\n  test: {\n    db: 'ENC(c0KA89TBZ6TbLn7E6RIiFQ==)',\n    pwd: {\n      a: 'ENC(c0KA89TBZ6TbLn7E6RIiFQ==)'\n    },\n    asad: {\n      pwd: {\n        str: 'str',\n        host: 'ENC(c0KA89TBZ6TbLn7E6RIiFQ==)',\n        pwd: 'ENC(c0KA89TBZ6TbLn7E6RIiFQ==)'\n      }\n    },\n    items: [{\n      user: 'user1',\n      pwd: 'ENC(c0KA89TBZ6TbLn7E6RIiFQ==)'\n    }, {\n      user: 'user2',\n      pwd: 'ENC(c0KA89TBZ6TbLn7E6RIiFQ==)'\n    }, {\n      user: 'user3',\n      pwd: 'ENC(c0KA89TBZ6TbLn7E6RIiFQ==)'\n    }],\n  }\n};\n\nconst jasypt = new Jasypt();\njasypt.setPassword('P8dEw34TgvbY');\njasypt.decryptConfig(data);\n```\n``` js\n// 解密出来的内容\nconst data = {\n  code: 42,\n  test: {\n    db: 'admin',\n    pwd: {\n      a: 'admin'\n    },\n    asad: {\n      pwd: {\n        str: 'str',\n        host: 'admin',\n        pwd: 'admin'\n      }\n    },\n    items: [{\n      user: 'user1',\n      pwd: 'admin'\n    }, {\n      user: 'user2',\n      pwd: 'admin'\n    }, {\n      user: 'user3',\n      pwd: 'admin'\n    }],\n  }\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickyes%2Fjasypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frickyes%2Fjasypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickyes%2Fjasypt/lists"}