{"id":19880763,"url":"https://github.com/andidittrich/node.crypto-toolkit","last_synced_at":"2026-05-10T21:51:49.256Z","repository":{"id":74246825,"uuid":"59951751","full_name":"AndiDittrich/Node.Crypto-Toolkit","owner":"AndiDittrich","description":" :key: A set of utility functions/wrapper to simplify the development workflow","archived":false,"fork":false,"pushed_at":"2017-04-14T12:04:35.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T04:38:50.871Z","etag":null,"topics":["base64url","crypto-toolkit","nodejs","sha1","sha256","sha512"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/crypto-toolkit","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/AndiDittrich.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-05-29T16:01:47.000Z","updated_at":"2017-04-14T12:11:31.000Z","dependencies_parsed_at":"2023-07-11T14:33:59.580Z","dependency_job_id":null,"html_url":"https://github.com/AndiDittrich/Node.Crypto-Toolkit","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/AndiDittrich/Node.Crypto-Toolkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndiDittrich%2FNode.Crypto-Toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndiDittrich%2FNode.Crypto-Toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndiDittrich%2FNode.Crypto-Toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndiDittrich%2FNode.Crypto-Toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndiDittrich","download_url":"https://codeload.github.com/AndiDittrich/Node.Crypto-Toolkit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndiDittrich%2FNode.Crypto-Toolkit/sbom","scorecard":{"id":13293,"data":{"date":"2025-08-11","repo":{"name":"github.com/AndiDittrich/Node.Crypto-Toolkit","commit":"cb3cd64bc69460bdc761f36b0dd4665727bf6bd4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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/2 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":"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":"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":"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":"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":"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":"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":"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":"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.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md: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":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-14T15:06:10.542Z","repository_id":74246825,"created_at":"2025-08-14T15:06:10.543Z","updated_at":"2025-08-14T15:06:10.543Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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-11-25T02:00:05.816Z","response_time":54,"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":["base64url","crypto-toolkit","nodejs","sha1","sha256","sha512"],"created_at":"2024-11-12T17:12:25.439Z","updated_at":"2025-11-25T03:11:01.746Z","avatar_url":"https://github.com/AndiDittrich.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Crypto-Toolkit\n==============\n\nA set of utility functions/wrapper to simplify the development workflow\n\n```bash\n$ npm install crypto-toolkit\n```\n\nFeatures\n--------\n\n* Hash Function Wrapper (MD5, SHA1, SHA244, SHA256, SHA384, SHA512, WHIRLPOOL)\n* Create Object/Array Hashes based on its JSON representation\n\n\nHash Function Wrapper\n---------------------\n\nProvides easy access to the [Node.js Crypto Hash](https://nodejs.org/api/crypto.html#crypto_class_hash) functions. Examples are available in [examples/hash.js](examples/hashes.js)\n\n```js\n// default hex encoding\nvar _hash = require('crypto-toolkit').Hash('hex');\n\nconsole.log(_hash.sha256('Hello World'));\n```\n\n##### Initialization #####\n\n```js\nrequire('crypto-toolkit').Hash([encoding:string])\n```\n\nThe argument `encoding` is optional and defines the output encoding of the digest.\n\n * **hex** (default) - hexadecimal string output\n * **base64** - base64 string output\n * **base64-urlsafe** - url-safe base64 string output (**/+=** are replaced by **_-**)\n * **binary** - binary output as [Buffer](https://nodejs.org/api/buffer.html)\n\n##### Hash Algorithms #####\n\nThe following wrappers are included:\n\n * `md5(input:mixed, [encoding:string])`\n * `sha1(input:mixed, [encoding:string])`\n * `sha2(input:mixed, [encoding:string])`\n * `sha224(input:mixed, [encoding:string])`\n * `sha256(input:mixed, [encoding:string])`\n * `sha384(input:mixed, [encoding:string])`\n * `sha512(input:mixed, [encoding:string])`\n * `whirlpool(input:mixed, [encoding:string])` \n \n### General Usage ###\n\n```js\nvar _hash = require('crypto-toolkit').Hash('hex');\n\n// some input\nvar input = 'Hello World';\n\n// display some hashes\nconsole.log('Default HEX Output');\nconsole.log(' |- MD5      ', _hash.md5(input));\nconsole.log(' |- SHA1     ', _hash.sha1(input));\nconsole.log(' |- SHA256   ', _hash.sha256(input));\nconsole.log(' |- SHA384   ', _hash.sha384(input));\nconsole.log(' |- SHA512   ', _hash.sha512(input));\nconsole.log(' |- WHIRLPOOL', _hash.whirlpool(input));\n\n// override the default output type\nconsole.log('Override the default output settings');\nconsole.log(' |- HEX      ', _hash.sha1(input, 'hex'));\nconsole.log(' |- BIN      ', _hash.sha1(input, 'binary'));\nconsole.log(' |- BASE64   ', _hash.sha1(input, 'base64'));\nconsole.log('');\n```\n\n### Objects ###\n\nObjects/Arrays are automatically serialized as JSON String. The JSON object is then passed into the hash function.\n\n```js\nvar _hash = require('crypto-toolkit').Hash('hex');\n\n// demo object\nvar objectInput = {\n    x: 1,\n    b: 2,\n    c: [5,6,7],\n    d: {\n        y: 'Hello',\n        z: 'World'\n    }\n};\n\nconsole.log('Object Input');\nconsole.log(' |- SHA256   ', _hash.sha256(objectInput));\nconsole.log('');\n```\n\nRandom Hash Generator\n---------------------\n\nCreate random hashes easily. Just calls the `crypto-toolkit.Hash` functions with a random content generated by `crypto.randomBytes(514)` - helpful for random URLs or filenames (e.g. cache hashes).\n\n```js\n// url-safe base64\nvar _randomhash = require('crypto-toolkit').RandomHash('base64-urlsafe');\n\n// all hash function of crypto-toolkit.Hash are supported\nconsole.log(_randomhash.sha256());\n\n// output like b7qhqd-WnKAH_GmBpSpvQrdkfUdLxL0m__XGcLTRsbI\n```\n\nAny Questions ? Report a Bug ? Enhancements ?\n---------------------------------------------\nPlease open a new issue on [GitHub](https://github.com/AndiDittrich/Node.Crypto-Toolkit/issues)\n\nLicense\n-------\nCrypto-Toolkit is OpenSource and licensed under the Terms of [The MIT License (X11)](http://opensource.org/licenses/MIT). You're welcome to contribute!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandidittrich%2Fnode.crypto-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandidittrich%2Fnode.crypto-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandidittrich%2Fnode.crypto-toolkit/lists"}