{"id":14483644,"url":"https://github.com/jedisct1/js-base64-ct","last_synced_at":"2025-10-08T10:13:38.183Z","repository":{"id":66081623,"uuid":"384700731","full_name":"jedisct1/js-base64-ct","owner":"jedisct1","description":"Safe Base64 encoding/decoding in pure JavaScript.","archived":false,"fork":false,"pushed_at":"2025-04-16T11:01:03.000Z","size":11,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-09T02:24:14.624Z","etag":null,"topics":["base64","constant-time","javascript","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jedisct1.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}},"created_at":"2021-07-10T13:10:17.000Z","updated_at":"2025-08-02T17:57:10.000Z","dependencies_parsed_at":"2025-06-08T00:46:05.189Z","dependency_job_id":null,"html_url":"https://github.com/jedisct1/js-base64-ct","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"71ac534a77e8f06e0a09c4a2985c7febd9f2462b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jedisct1/js-base64-ct","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Fjs-base64-ct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Fjs-base64-ct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Fjs-base64-ct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Fjs-base64-ct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jedisct1","download_url":"https://codeload.github.com/jedisct1/js-base64-ct/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Fjs-base64-ct/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278925605,"owners_count":26069726,"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-10-08T02:00:06.501Z","response_time":56,"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":["base64","constant-time","javascript","typescript"],"created_at":"2024-09-03T00:01:56.494Z","updated_at":"2025-10-08T10:13:38.166Z","avatar_url":"https://github.com/jedisct1.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Safe Base64 codecs for JavaScript\n\nA pure JavaScript port of the libsodium base64 codecs.\n\nFeatures:\n\n* Supports traditional and URL-safe variants, with or without padding\n* Rejects non-canonical padding\n* Constant-time (best-effort), suitable for encoding/decoding secrets\n* Characters can be ignored by the decoder\n\nAvailable on NPM: [base64-ct](https://www.npmjs.com/package/base64-ct)\n\nUsage:\n\n- Traditional alphabet, padding:\n\n```js\nconst codec = new Base64(true);\nconst b64 = codec.encode(data);\nconst data2 = codec.decode(b64);\n```\n\n- Traditional alphabet, no padding:\n\n```js\nconst codec = new Base64(false);\nconst b64 = codec.encode(data);\nconst data2 = codec.decode(b64);\n```\n\n- URL-safe, no padding:\n\n```js\nconst codec = new Base64UrlSafe(false);\nconst b64 = codec.encode(data);\nconst data2 = codec.decode(b64);\n```\n\n- URL-safe, padding, ignoring spaces and `\\n`:\n\n```js\nconst codec = new Base64UrlSafe(true, \" \\n\");\nconst b64 = codec.encode(data);\nconst data2 = codec.decode(b64);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedisct1%2Fjs-base64-ct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjedisct1%2Fjs-base64-ct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedisct1%2Fjs-base64-ct/lists"}