{"id":13806859,"url":"https://github.com/paolostivanin/libbaseencode","last_synced_at":"2025-05-13T23:33:34.587Z","repository":{"id":19444106,"uuid":"86607378","full_name":"paolostivanin/libbaseencode","owner":"paolostivanin","description":"Library written in C for encoding and decoding data using base32 or base64 (RFC-4648)","archived":true,"fork":false,"pushed_at":"2023-01-10T08:28:58.000Z","size":92,"stargazers_count":21,"open_issues_count":0,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-18T23:51:02.489Z","etag":null,"topics":["base32","base64","c"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paolostivanin.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":"SECURITY.md","support":null}},"created_at":"2017-03-29T16:53:29.000Z","updated_at":"2023-10-13T20:13:06.000Z","dependencies_parsed_at":"2023-01-11T20:27:58.888Z","dependency_job_id":null,"html_url":"https://github.com/paolostivanin/libbaseencode","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paolostivanin%2Flibbaseencode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paolostivanin%2Flibbaseencode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paolostivanin%2Flibbaseencode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paolostivanin%2Flibbaseencode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paolostivanin","download_url":"https://codeload.github.com/paolostivanin/libbaseencode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254043218,"owners_count":22004912,"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":["base32","base64","c"],"created_at":"2024-08-04T01:01:17.149Z","updated_at":"2025-05-13T23:33:29.572Z","avatar_url":"https://github.com/paolostivanin.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# libbaseencode (deprecated since libcotp 2.0.0)\n\u003ca href=\"https://scan.coverity.com/projects/paolostivanin-libbaseencode\"\u003e\n  \u003cimg alt=\"Coverity Scan Build Status\"\n       src=\"https://scan.coverity.com/projects/12747/badge.svg\"/\u003e\n\u003c/a\u003e\n\nLibrary written in C for encoding and decoding data using base32 or base64 according to [RFC-4648](https://tools.ietf.org/html/rfc4648)\n\n⚠️ libbasencode is deprecated since [libcotp](https://github.com/paolostivanin/libcotp) 2.0.0 has been released. ⚠️\n\n# Requiremens\n- GCC or Clang\n- CMake\n\n# Build and Install\n```\n$ git clone https://github.com/paolostivanin/libbaseencode.git\n$ cd libbaseencode\n$ mkdir build \u0026\u0026 cd $_\n$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ../\n$ make\n# make install\n```\n\n# How To Use It\n```\nchar *b32_encoded = base32_encode(unsigned char *input, size_t input_length, baseencode_error_t *err);\n\nunsigned char *b32_decoded = base32_decode(char *input, size_t input_length, baseencode_error_t *err);\n\nchar *b64_encoded = base64_encode(unsigned char *input, size_t input_length, baseencode_error_t *err);\n\nunsigned char *b64_decoded = base64_decode(char *input, size_t input_length, baseencode_error_t *err);\n```\nPlease note that all the returned value **must be freed** once not needed any more.\n\n## Errors\nIn case of errors, `NULL` is returned and `err` is set to either one of:\n```\nINVALID_INPUT, EMPTY_STRING, INPUT_TOO_BIG, INVALID_B32_DATA, INVALID_B64_DATA, MEMORY_ALLOCATION,\n```\notherwise, `err` is set to `SUCCESS`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaolostivanin%2Flibbaseencode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaolostivanin%2Flibbaseencode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaolostivanin%2Flibbaseencode/lists"}