{"id":21585982,"url":"https://github.com/magiclen/base64-stream","last_synced_at":"2026-03-05T10:33:36.449Z","repository":{"id":57502911,"uuid":"154280026","full_name":"magiclen/base64-stream","owner":"magiclen","description":"To encode/decode large data with the standard Base64 encoding.","archived":false,"fork":false,"pushed_at":"2025-12-13T07:00:35.000Z","size":68,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-03T08:26:52.396Z","etag":null,"topics":["base64","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/magiclen.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-10-23T07:12:57.000Z","updated_at":"2026-03-02T15:23:45.000Z","dependencies_parsed_at":"2025-12-13T09:04:34.743Z","dependency_job_id":null,"html_url":"https://github.com/magiclen/base64-stream","commit_stats":{"total_commits":44,"total_committers":1,"mean_commits":44.0,"dds":0.0,"last_synced_commit":"858258e84d5a3835599f2971c6ade0c34831eed2"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/magiclen/base64-stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fbase64-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fbase64-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fbase64-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fbase64-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclen","download_url":"https://codeload.github.com/magiclen/base64-stream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fbase64-stream/sbom","scorecard":{"id":611746,"data":{"date":"2025-08-11","repo":{"name":"github.com/magiclen/base64-stream","commit":"52d2b2c6f61970301933e13c84870d1d95e7b5a0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/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":"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":"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":"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":"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/ci-version.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/magiclen/base64-stream/ci-version.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-version.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/magiclen/base64-stream/ci-version.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-version.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/magiclen/base64-stream/ci-version.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-version.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/magiclen/base64-stream/ci-version.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/magiclen/base64-stream/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/magiclen/base64-stream/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/magiclen/base64-stream/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/magiclen/base64-stream/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/magiclen/base64-stream/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/magiclen/base64-stream/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/magiclen/base64-stream/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/magiclen/base64-stream/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/magiclen/base64-stream/ci.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   7 third-party GitHubAction 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci-version.yml:1","Warn: no topLevel permission defined: .github/workflows/ci.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":"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":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":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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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"}}]},"last_synced_at":"2025-08-21T02:50:17.369Z","repository_id":57502911,"created_at":"2025-08-21T02:50:17.369Z","updated_at":"2025-08-21T02:50:17.369Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30119461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T09:35:22.236Z","status":"ssl_error","status_checked_at":"2026-03-05T09:35:20.028Z","response_time":93,"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":["base64","rust"],"created_at":"2024-11-24T15:12:19.239Z","updated_at":"2026-03-05T10:33:36.418Z","avatar_url":"https://github.com/magiclen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Base64 Stream\n====================\n\n[![CI](https://github.com/magiclen/base64-stream/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/base64-stream/actions/workflows/ci.yml)\n\nTo encode/decode large data with the standard Base64 encoding.\n\n## Examples\n\n### Encode\n\n#### ToBase64Reader\n\n```rust\nuse std::io::{Cursor, Read};\n\nuse base64_stream::ToBase64Reader;\n\nlet test_data = b\"Hi there, this is a simple sentence used for testing this crate. I hope all cases are correct.\".to_vec();\n\nlet mut reader = ToBase64Reader::new(Cursor::new(test_data));\n\nlet mut base64 = String::new();\n\nreader.read_to_string(\u0026mut base64).unwrap();\n\nassert_eq!(\"SGkgdGhlcmUsIHRoaXMgaXMgYSBzaW1wbGUgc2VudGVuY2UgdXNlZCBmb3IgdGVzdGluZyB0aGlzIGNyYXRlLiBJIGhvcGUgYWxsIGNhc2VzIGFyZSBjb3JyZWN0Lg==\", base64);\n```\n\n#### ToBase64Writer\n\n```rust\nuse std::fs::{self, File};\nuse std::io::Write;\nuse std::path::Path;\n\nuse base64_stream::ToBase64Writer;\n\nconst DATA_FOLDER: \u0026str = \"data\";\nconst ENCODE_OUTPUT: \u0026str = \"encode_output.txt\";\n\nlet test_data = b\"Hi there, this is a simple sentence used for testing this crate. I hope all cases are correct.\".as_ref();\n\nlet file_path = Path::new(\"tests\").join(DATA_FOLDER).join(ENCODE_OUTPUT);\n\nlet base64 = File::create(file_path.as_path()).unwrap();\n\nlet mut writer = ToBase64Writer::new(base64);\n\nwriter.write_all(test_data).unwrap();\n\nwriter.flush().unwrap(); // the flush method is only used when the full plain data has been written\n\nassert_eq!(\"SGkgdGhlcmUsIHRoaXMgaXMgYSBzaW1wbGUgc2VudGVuY2UgdXNlZCBmb3IgdGVzdGluZyB0aGlzIGNyYXRlLiBJIGhvcGUgYWxsIGNhc2VzIGFyZSBjb3JyZWN0Lg==\", fs::read_to_string(file_path).unwrap());\n```\n\n### Decode\n\n#### FromBase64Reader\n\n```rust\nuse std::io::Cursor;\n\nuse std::io::Read;\n\nuse base64_stream::FromBase64Reader;\n\nlet base64 = b\"SGkgdGhlcmUsIHRoaXMgaXMgYSBzaW1wbGUgc2VudGVuY2UgdXNlZCBmb3IgdGVzdGluZyB0aGlzIGNyYXRlLiBJIGhvcGUgYWxsIGNhc2VzIGFyZSBjb3JyZWN0Lg==\".to_vec();\n\nlet mut reader = FromBase64Reader::new(Cursor::new(base64));\n\nlet mut test_data = String::new();\n\nreader.read_to_string(\u0026mut test_data).unwrap();\n\nassert_eq!(\"Hi there, this is a simple sentence used for testing this crate. I hope all cases are correct.\", test_data);\n```\n\n#### FromBase64Writer\n\n```rust\nuse std::fs::{self, File};\nuse std::io::Write;\nuse std::path::Path;\n\nuse base64_stream::FromBase64Writer;\n\nconst DATA_FOLDER: \u0026str = \"data\";\nconst DECODE_OUTPUT: \u0026str = \"decode_output.txt\";\n\nlet base64 = b\"SGkgdGhlcmUsIHRoaXMgaXMgYSBzaW1wbGUgc2VudGVuY2UgdXNlZCBmb3IgdGVzdGluZyB0aGlzIGNyYXRlLiBJIGhvcGUgYWxsIGNhc2VzIGFyZSBjb3JyZWN0Lg==\".as_ref();\n\nlet file_path = Path::new(\"tests\").join(DATA_FOLDER).join(DECODE_OUTPUT);\n\nlet test_data = File::create(file_path.as_path()).unwrap();\n\nlet mut writer = FromBase64Writer::new(test_data);\n\nwriter.write_all(base64).unwrap();\n\nwriter.flush().unwrap(); // the flush method is only used when the full base64 data has been written\n\nassert_eq!(\"Hi there, this is a simple sentence used for testing this crate. I hope all cases are correct.\", fs::read_to_string(file_path).unwrap());\n```\n\n## Change the Buffer Size\n\nThe default buffer size is 4096 bytes. If you want to change that, you can use the `new2` associated function and define a length explicitly to create an instance of the above structs.\n\nFor example, to change the buffer size to 256 bytes,\n\n```rust\nuse std::io::{Cursor, Read};\n\nuse base64_stream::ToBase64Reader;\nuse base64_stream::generic_array::typenum::U256;\n\nlet test_data = b\"Hi there, this is a simple sentence used for testing this crate. I hope all cases are correct.\".to_vec();\n\nlet mut reader: ToBase64Reader\u003c_, U256\u003e = ToBase64Reader::new2(Cursor::new(test_data));\n\nlet mut base64 = String::new();\n\nreader.read_to_string(\u0026mut base64).unwrap();\n\nassert_eq!(\"SGkgdGhlcmUsIHRoaXMgaXMgYSBzaW1wbGUgc2VudGVuY2UgdXNlZCBmb3IgdGVzdGluZyB0aGlzIGNyYXRlLiBJIGhvcGUgYWxsIGNhc2VzIGFyZSBjb3JyZWN0Lg==\", base64);\n```\n\n## Crates.io\n\nhttps://crates.io/crates/base64-stream\n\n## Documentation\n\nhttps://docs.rs/base64-stream\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fbase64-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclen%2Fbase64-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fbase64-stream/lists"}