{"id":43534253,"url":"https://github.com/dylan-lang/base64","last_synced_at":"2026-02-03T16:25:46.786Z","repository":{"id":137927872,"uuid":"1441659","full_name":"dylan-lang/base64","owner":"dylan-lang","description":"Base64 implementation for Dylan","archived":false,"fork":false,"pushed_at":"2025-11-07T06:36:12.000Z","size":202,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-11-07T08:25:04.009Z","etag":null,"topics":["base64","dylan","dylan-lang"],"latest_commit_sha":null,"homepage":"http://dylan-lang.github.io/base64/","language":"Dylan","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dylan-lang.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":"2011-03-05T00:09:40.000Z","updated_at":"2025-11-07T06:36:09.000Z","dependencies_parsed_at":"2024-11-04T16:26:03.379Z","dependency_job_id":"df80b2a0-7564-4c56-a1ea-3135cd80f03a","html_url":"https://github.com/dylan-lang/base64","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/dylan-lang/base64","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan-lang%2Fbase64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan-lang%2Fbase64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan-lang%2Fbase64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan-lang%2Fbase64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylan-lang","download_url":"https://codeload.github.com/dylan-lang/base64/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan-lang%2Fbase64/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29048783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:43:47.601Z","status":"ssl_error","status_checked_at":"2026-02-03T15:43:46.709Z","response_time":96,"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","dylan","dylan-lang"],"created_at":"2026-02-03T16:25:43.297Z","updated_at":"2026-02-03T16:25:46.778Z","avatar_url":"https://github.com/dylan-lang.png","language":"Dylan","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Base64\n[![build-and-test](https://github.com/dylan-lang/base64/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/dylan-lang/base64/actions/workflows/build-and-test.yml)\n\nBase64 implementation for Dylan\n\n## Abstract\n\nThis library implements the Base64 transfer encoding algorithm as\ndefined in [RFC 1521](https://datatracker.ietf.org/doc/html/rfc1521)\nby Borensten \u0026 Freed, September 1993.\n\n# Usage\n\n## Functions exported\n\nThis library exports two functions\n\n- `base64-encode (string) =\u003e (string)` and\n\n- `base64-decode (string) =\u003e (string)`\n\n## Types of encoding\n\nThe functions have two types of encoding/decoding:\n\n- `#\"standard\"` (default) and\n\n- `#\"http\"`\n\nThe main difference between them are the padding characters used. You\ncan choose the type with the key parameter `encoding:` (see example below).\n\n## Example\n\n### Standard encoding/decoding\n\nHere is an example of usage of the standard encoding/decoding:\n\n```dylan\n// Example string to encode\nlet original-string = \"Many hands make light work.\";\n\n// Encoding the string to base64 standard\nlet encoded-standard = base64-encode(original-string);\nformat-out(\"Encoded string: %=\\n\", encoded-standard);\n\n// Shows in output\n// Encoded string: \"TWFueSBoYW5kcyBtYWtlIGxpZ2h0IHdvcmsu\"\n\n// Decoding the string in base64 standard\nlet decoded-string = base64-decode(encoded-standard);\nformat-out(\"Decoded string: %=\\n\", decoded-string);\n\n// Shows in output\n// Decoded string: \"Many hands make light work.\"\n```\n### HTTP encoding/decoding\n\nTo show the http encoding/decoding we will use a text that forces the\npadding (base64 encoding uses padding to ensure that the length of the\nencoded string is a multiple of 4 bytes).\n\n```dylan\n// Example string to encode, note the missing dot at the end\nlet original-string = \"Many hands make light work\";\n\n// Encoding the string to base64 http\nlet encoded-http = base64-encode(original-string, encoding: #\"http\");\nformat-out(\"Encoded string: %=\\n\", encoded-http);\n\n// Shows in output (note the padding character '@')\n// Encoded string: \"TWFueSBoYW5kcyBtYWtlIGxpZ2h0IHdvcms@\"\n\n// Decoding the string in base64 http\nlet decoded-string = base64-decode(encoded-http, encoding: #\"http\");\nformat-out(\"Decoded string: %=\\n\", decoded-string);\n\n// Shows in output\n// Decoded string: \"Many hands make light work\"\n```\n\n## Author\n\nOriginal version written in Common Lisp by Juri Pakaste \u003cjuri@iki.fi\u003e.\nConverted to Dylan by Carl Gay, July 2002.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylan-lang%2Fbase64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylan-lang%2Fbase64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylan-lang%2Fbase64/lists"}