{"id":15113687,"url":"https://github.com/mohabdo21/base64_enc_dec","last_synced_at":"2026-01-19T13:01:44.701Z","repository":{"id":256878613,"uuid":"856636658","full_name":"Mohabdo21/base64_enc_dec","owner":"Mohabdo21","description":"A collection of Base64 encoding and decoding scripts implemented in various programming languages, including C, Go, JavaScript, Python, Ruby, and Bash. This repository also includes a benchmarking script to compare performance across different languages.","archived":false,"fork":false,"pushed_at":"2024-10-04T23:07:26.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T18:15:53.994Z","etag":null,"topics":["base64","bash","benchmarking","c","cli","command-line","decoding","encoding","go","javascript","performance","python","ruby"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mohabdo21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-09-12T23:39:11.000Z","updated_at":"2024-10-04T23:07:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ec77afb-9c04-475d-825b-f1f469b8042c","html_url":"https://github.com/Mohabdo21/base64_enc_dec","commit_stats":null,"previous_names":["mohabdo21/base64_enc_dec"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mohabdo21/base64_enc_dec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fbase64_enc_dec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fbase64_enc_dec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fbase64_enc_dec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fbase64_enc_dec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mohabdo21","download_url":"https://codeload.github.com/Mohabdo21/base64_enc_dec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fbase64_enc_dec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28568833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T12:50:50.164Z","status":"ssl_error","status_checked_at":"2026-01-19T12:50:42.704Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","bash","benchmarking","c","cli","command-line","decoding","encoding","go","javascript","performance","python","ruby"],"created_at":"2024-09-26T01:22:12.201Z","updated_at":"2026-01-19T13:01:44.659Z","avatar_url":"https://github.com/Mohabdo21.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Base64 Encoder/Decoder\n\nA collection of scripts to encode and decode strings to and from Base64 in various programming languages.\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Files](#files)\n- [Usage](#usage)\n  - [C](#c)\n  - [JavaScript](#javascript)\n  - [Python](#python)\n  - [Ruby](#ruby)\n  - [Bash](#bash)\n  - [Go](#go)\n- [Benchmarking Script](#benchmarking-script)\n\n## Overview\n\nThis repository contains implementations of Base64 encoding and decoding in multiple programming languages. Each script provides\nfunctionality to encode a given string to Base64 and decode a Base64-encoded string back to its original form.\n\n## Files\n\n- `base64_enc_dec.c` - C implementation\n- `base64_enc_dec.js` - JavaScript implementation\n- `base64_enc_dec.py` - Python implementation\n- `base64_enc_dec.rb` - Ruby implementation\n- `base64_enc_dec.sh` - Bash implementation\n- `base64_enc_dec.go` - Go implementation\n\n## Usage\n\nMake sure you have the required runtime installed on your system before running the scripts.\nMake sure all scripts have executable permissions except for the C \u0026 Go programs:\n\n```sh\nchmod +x base64_enc_dec.*\n```\n\n### C\n\nCompile the C program using `gcc`:\n\n```sh\ngcc -o base64_enc_dec base64_enc_dec.c\n```\n\nRun the program:\n\n```sh\n./base64_enc_dec encode \"your_string\"\n./base64_enc_dec decode \"your_base64_string\"\n```\n\n### JavaScript\n\nEnsure you have installed `node`:\n\n```sh\n./base64_enc_dec.js encode \"your_string\"\n./base64_enc_dec.js decode \"your_base64_string\"\n```\n\n### Python\n\nEnsure you have installed `python3.12`:\n\n```sh\n./base64_enc_dec.py encode \"your_string\"\n./base64_enc_dec.py decode \"your_base64_string\"\n```\n\n### Ruby\n\nEnsure you have installed `ruby`:\n\n```sh\n./base64_enc_dec.rb encode \"your_string\"\n./base64_enc_dec.rb decode \"your_base64_string\"\n```\n\n### Bash\n\nRun the Bash script:\n\n```sh\n./base64_enc_dec.sh encode \"your_string\"\n./base64_enc_dec.sh decode \"your_base64_string\"\n```\n\n### Go\n\nBuild the Go executable using `go build`:\n\n```sh\ngo build -o base64_enc_dec base64_enc_dec.go\n```\n\nRun the program:\n\n```sh\n./base64_enc_dec -operation encode -input \"your_string\"\n./base64_enc_dec -operation decode -input \"your_base64_string\"\n```\n\n## Benchmarking Script\n\nThis repository includes a benchmarking script, `benchmark_base64.sh`, which allows you to compare the performance of Base64 encoding and decoding across multiple programming languages. The script executes implementations in C, Python, Ruby, JavaScript, Bash, and Go, measuring the time taken to encode and decode a sample string in each language.\n\n### Running the Benchmark\n\nTo use the benchmarking script, ensure that all necessary runtime environments and dependencies are installed. The script will compile the C program and build the Go executable automatically and attempt to run each language's script. It also checks if the scripts are executable and makes them executable if necessary.\n\nTo run the benchmark:\n\n```sh\n./benchmark_base64.sh\n```\n\nThis benchmarking script provides insight into the relative performance of Base64 encoding and decoding across different languages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohabdo21%2Fbase64_enc_dec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohabdo21%2Fbase64_enc_dec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohabdo21%2Fbase64_enc_dec/lists"}