{"id":15640658,"url":"https://github.com/ankane/secure-spreadsheet","last_synced_at":"2025-11-17T14:11:38.656Z","repository":{"id":41113800,"uuid":"128699422","full_name":"ankane/secure-spreadsheet","owner":"ankane","description":"Encrypt and password protect sensitive CSV and XLSX files","archived":false,"fork":false,"pushed_at":"2025-09-22T14:51:01.000Z","size":36,"stargazers_count":75,"open_issues_count":0,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-02T23:15:23.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ankane.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-04-09T01:47:29.000Z","updated_at":"2025-10-24T11:48:28.000Z","dependencies_parsed_at":"2024-02-08T07:25:40.993Z","dependency_job_id":"623d989d-ea82-4df1-b589-9d30443a7b53","html_url":"https://github.com/ankane/secure-spreadsheet","commit_stats":{"total_commits":58,"total_committers":4,"mean_commits":14.5,"dds":"0.22413793103448276","last_synced_commit":"3c8dd1cdc880e1f5a6fb7d80d285397523ef9296"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ankane/secure-spreadsheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fsecure-spreadsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fsecure-spreadsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fsecure-spreadsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fsecure-spreadsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ankane","download_url":"https://codeload.github.com/ankane/secure-spreadsheet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fsecure-spreadsheet/sbom","scorecard":{"id":197165,"data":{"date":"2025-08-11","repo":{"name":"github.com/ankane/secure-spreadsheet","commit":"fe32a30a66c3d30a02e23a8507ed4c357e621140"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/ankane/secure-spreadsheet/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/ankane/secure-spreadsheet/build.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/build.yml:16","Warn: npmCommand not pinned by hash: .github/workflows/build.yml:17","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 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":"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.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":"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":"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":"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.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt: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-16T22:01:26.493Z","repository_id":41113800,"created_at":"2025-08-16T22:01:26.493Z","updated_at":"2025-08-16T22:01:26.493Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284894102,"owners_count":27080643,"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-17T02:00:06.431Z","response_time":55,"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":[],"created_at":"2024-10-03T11:39:21.633Z","updated_at":"2025-11-17T14:11:38.639Z","avatar_url":"https://github.com/ankane.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secure Spreadsheet\n\n:fire: Secure your data exports - encrypt and password protect sensitive CSV and XLSX files\n\nThe [Office Open XML format](https://en.wikipedia.org/wiki/Office_Open_XML) provides a standard for encryption and password protection\n\nWorks with Excel, Numbers, and LibreOffice Calc\n\n[![Build Status](https://github.com/ankane/secure-spreadsheet/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/secure-spreadsheet/actions)\n\n## Getting Started\n\nInstall the CLI\n\n```sh\nnpm install -g secure-spreadsheet\n```\n\nConvert a CSV into password-protected, AES-256 encrypted XLSX\n\n```sh\nsecure-spreadsheet --password secret \u003c input.csv \u003e output.xlsx\n```\n\nProtect an existing XLSX\n\n```sh\nsecure-spreadsheet --password secret --input-format xlsx \u003c input.xlsx \u003e output.xlsx\n```\n\n## Languages\n\nYou can use the CLI to create encrypted spreadsheets in other languages.\n\n- [PHP](#php)\n- [Python](#python)\n- [Ruby](#ruby)\n\nPull requests are welcome for more languages.\n\n### PHP\n\n```php\n\u003c?php\n\n$csv_str = \"awesome,csv\";\n\n$descriptorspec = array(\n  0 =\u003e array(\"pipe\", \"r\"),\n  1 =\u003e array(\"pipe\", \"w\")\n);\n\n$process = proc_open([\"secure-spreadsheet\", \"--password\", \"secret\"], $descriptorspec, $pipes);\n\nif (!is_resource($process)) {\n  die(\"Command failed\");\n}\n\nfwrite($pipes[0], $csv_str);\nfclose($pipes[0]);\n\n$result = stream_get_contents($pipes[1]);\nfclose($pipes[1]);\n\nif (proc_close($process) != 0) {\n  die(\"Command failed\");\n}\n\nfile_put_contents(\"output.xlsx\", $result);\n```\n\n### Python\n\n```python\nimport subprocess\n\ncsv_str = b'awesome,csv'\n\nresult = subprocess.check_output(['secure-spreadsheet', '--password', 'secret'], input=csv_str)\n\nwith open('output.xlsx', 'wb') as f:\n    f.write(result)\n```\n\n### Ruby\n\n```ruby\nrequire \"open3\"\n\ncsv_str = \"awesome,csv\"\n\nresult, status = Open3.capture2(\"secure-spreadsheet\", \"--password\", \"secret\", stdin_data: csv_str)\nraise \"Command failed\" unless status.success?\n\nFile.write(\"output.xlsx\", result)\n```\n\n## Other Approaches\n\nAn alternative approach to secure your data is to create a password-protected ZIP archive. However, this leaves the data exposed after it’s unzipped.\n\n## Notes\n\nThe content type for XLSX is `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`.\n\n## Credits\n\nThanks to [xlsx-populate](https://github.com/dtjohnson/xlsx-populate) for providing the encryption and password protection.\n\n## History\n\nView the [changelog](https://github.com/ankane/secure-spreadsheet/blob/master/CHANGELOG.md)\n\n## Contributing\n\nEveryone is encouraged to help improve this project. Here are a few ways you can help:\n\n- [Report bugs](https://github.com/ankane/secure-spreadsheet/issues)\n- Fix bugs and [submit pull requests](https://github.com/ankane/secure-spreadsheet/pulls)\n- Write, clarify, or fix documentation\n- Suggest or add new features\n\nTo get started with development:\n\n```sh\ngit clone https://github.com/ankane/secure-spreadsheet.git\ncd secure-spreadsheet\nnpm install\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankane%2Fsecure-spreadsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankane%2Fsecure-spreadsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankane%2Fsecure-spreadsheet/lists"}