{"id":21585976,"url":"https://github.com/magiclen/base64-url","last_synced_at":"2025-10-25T02:43:57.883Z","repository":{"id":57502943,"uuid":"146083477","full_name":"magiclen/base64-url","owner":"magiclen","description":"Base64 encode, decode, escape and unescape for URL applications.","archived":false,"fork":false,"pushed_at":"2024-05-01T13:21:05.000Z","size":45,"stargazers_count":11,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T17:55:19.372Z","etag":null,"topics":["base64","base64-url","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}},"created_at":"2018-08-25T09:40:18.000Z","updated_at":"2025-01-19T11:28:54.000Z","dependencies_parsed_at":"2023-11-26T09:22:06.452Z","dependency_job_id":"435342d3-cead-4b94-b612-915c439a6452","html_url":"https://github.com/magiclen/base64-url","commit_stats":{"total_commits":48,"total_committers":1,"mean_commits":48.0,"dds":0.0,"last_synced_commit":"aafb5f63fe5c75f09b3edce76255be9cae00a974"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fbase64-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fbase64-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fbase64-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fbase64-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclen","download_url":"https://codeload.github.com/magiclen/base64-url/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248288399,"owners_count":21078903,"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","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","base64-url","rust"],"created_at":"2024-11-24T15:12:18.211Z","updated_at":"2025-10-25T02:43:52.838Z","avatar_url":"https://github.com/magiclen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Base64 URL\n====================\n\n[![CI](https://github.com/magiclen/base64-url/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/base64-url/actions/workflows/ci.yml)\n\nBase64 encode, decode, escape and unescape for URL applications.\n\n## Examples\n\nEncode data to a Base64-URL string.\n\n```rust\nassert_eq!(\"SGVsbG8sIHdvcmxkIQ\", base64_url::encode(\"Hello, world!\"));\n```\n\nDecode a Base64-URL string to data.\n\n```rust\nassert_eq!(b\"Hello, world!\", base64_url::decode(\"SGVsbG8sIHdvcmxkIQ\").unwrap().as_slice());\n```\n\nEscape a Base64 string to a Base64-URL string. The conversion is not concerning with Base64 decoding. You need to make sure the input string is a correct Base64 string by yourself.\n\n```rust\nassert_eq!(\"SGVsbG8sIHdvcmxkIQ\", base64_url::escape(\"SGVsbG8sIHdvcmxkIQ==\"));\n```\n\nUnescape a Base64-URL string to a Base64-URL string. The conversion is not concerning with Base64 decoding. You need to make sure the input string is a correct Base64-URL string by yourself.\n\n```rust\nassert_eq!(\"SGVsbG8sIHdvcmxkIQ==\", base64_url::unescape(\"SGVsbG8sIHdvcmxkIQ\"));\n```\n\nBesides, you can also use other `encode_*`, `decode_*`, `escape_*`, `unescape_*` associated functions to deal with more specific cases. For example,\n\n```rust\nlet hash = \u0026[1, 2, 3, 4, 5, 6, 7, 8, 9];\nlet mut url = String::from(\"https://example.com/?hash=\");\n\nassert_eq!(\"AQIDBAUGBwgJ\", base64_url::encode_to_string(hash, \u0026mut url));\nassert_eq!(\"https://example.com/?hash=AQIDBAUGBwgJ\", url);\n```\n\n## No Std\n\nDisable the default features to compile this crate without std.\n\n```toml\n[dependencies.base64-url]\nversion = \"*\"\ndefault-features = false\n```\n\n## Crates.io\n\nhttps://crates.io/crates/base64-url\n\n## Documentation\n\nhttps://docs.rs/base64-url\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fbase64-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclen%2Fbase64-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fbase64-url/lists"}