A summary of data about the Ruby ecosystem.

https://github.com/ruby/base64

Support for encoding and decoding binary data using a Base64 representation
https://github.com/ruby/base64

Keywords

ruby

Keywords from Contributors

strscan bigdecimal rubygems repl activerecord documentation-tool webrick parser-generator lalr-parser-generator feature-flag

Last synced: about 16 hours ago
JSON representation

Repository metadata

Support for encoding and decoding binary data using a Base64 representation

README.md

Base64

The Base64 module provides for the encoding (#encode64, #strict_encode64,
#urlsafe_encode64) and decoding (#decode64, #strict_decode64,
#urlsafe_decode64) of binary data using a Base64 representation.

Installation

Add this line to your application's Gemfile:

gem 'base64'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install base64

Usage

A simple encoding and decoding.

require "base64"

enc   = Base64.encode64('Send reinforcements')
                    # -> "U2VuZCByZWluZm9yY2VtZW50cw==\n"
plain = Base64.decode64(enc)
                    # -> "Send reinforcements"

The purpose of using base64 to encode data is that it translates any
binary data into purely printable characters.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/base64.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 5 days ago

Total Commits: 94
Total Committers: 23
Avg Commits per committer: 4.087
Development Distribution Score (DDS): 0.723

Commits in past year: 36
Committers in past year: 8
Avg Commits per committer in past year: 4.5
Development Distribution Score (DDS) in past year: 0.444

Name Email Commits
Hiroshi SHIBATA h****t@r****g 26
dependabot[bot] 4****] 22
Nobuyoshi Nakada n****u@r****g 8
matz m****z@b****e 5
Joao Fernandes j****o@h****o 5
Olle Jonsson o****n@g****m 3
mame m****e@b****e 3
dave d****e@b****e 2
Yuki Kurihara c****i@g****m 2
Jeremy Evans c****e@j****t 2
kazu k****u@b****e 2
naruse n****e@b****e 2
Burdette Lamar B****r@Y****m 2
Jim Kane f****s@g****m 1
Keishi Tanaka k****a@r****p 1
Keshav Biswa k****1@g****m 1
Konstantin Papkovskiy k****n@p****m 1
Mark Young m****g@a****o 1
Peter Goldstein p****n@g****m 1
copilot-swe-agent[bot] 1****t 1
gsinclair g****r@b****e 1
knu k****u@b****e 1
ktsj k****j@b****e 1

Committer domains:


Issue and Pull Request metadata

Last synced: 8 days ago

Total issues: 7
Total pull requests: 53
Average time to close issues: 3 months
Average time to close pull requests: 21 days
Total issue authors: 7
Total pull request authors: 14
Average comments per issue: 0.57
Average comments per pull request: 0.43
Merged pull request: 43
Bot issues: 0
Bot pull requests: 21

Past year issues: 3
Past year pull requests: 30
Past year average time to close issues: N/A
Past year average time to close pull requests: 1 day
Past year issue authors: 3
Past year pull request authors: 7
Past year average comments per issue: 0.33
Past year average comments per pull request: 0.13
Past year merged pull request: 21
Past year bot issues: 0
Past year bot pull requests: 19

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ruby/base64

Top Issue Authors

  • olleolleolle (1)
  • lilole (1)
  • justinvolleyfort (1)
  • BurdetteLamar (1)
  • miloprice (1)
  • fastjames (1)
  • sos4nt (1)

Top Pull Request Authors

  • dependabot[bot] (21)
  • hsbt (7)
  • nobu (5)
  • ksss (3)
  • olleolleolle (3)
  • BurdetteLamar (3)
  • fastjames (2)
  • jcmfernandes (2)
  • keshavbiswa (2)
  • petergoldstein (1)
  • tanakakc (1)
  • mark-young-atg (1)
  • jeremyevans (1)
  • Gimbardo (1)

Top Issue Labels

  • enhancement (1)

Top Pull Request Labels

  • dependencies (21)
  • github_actions (19)
  • documentation (4)

Package metadata

gem.coop: base64

Support for encoding and decoding binary data using a Base64 representation.

  • Homepage: https://github.com/ruby/base64
  • Documentation: http://www.rubydoc.info/gems/base64/
  • Licenses: Ruby,BSD-2-Clause
  • Latest release: 0.3.0 (published 11 months ago)
  • Last Synced: 2026-04-26T23:30:33.477Z (4 days ago)
  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 420,079,276 Total
  • Docker Downloads: 3,297,837,317
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.027%
    • Downloads: 0.082%
  • Maintainers (2)
rubygems.org: base64

Support for encoding and decoding binary data using a Base64 representation.

  • Homepage: https://github.com/ruby/base64
  • Documentation: http://www.rubydoc.info/gems/base64/
  • Licenses: Ruby,BSD-2-Clause
  • Latest release: 0.3.0 (published 11 months ago)
  • Last Synced: 2026-04-24T23:01:54.623Z (6 days ago)
  • Versions: 5
  • Dependent Packages: 96
  • Dependent Repositories: 6,513
  • Downloads: 419,396,246 Total
  • Docker Downloads: 3,297,837,317
  • Rankings:
    • Docker downloads count: 0.036%
    • Dependent repos count: 0.403%
    • Dependent packages count: 0.733%
    • Downloads: 0.973%
    • Average: 3.82%
    • Forks count: 7.99%
    • Stargazers count: 12.787%
  • Maintainers (2)
alpine-edge: ruby-base64-doc

Support for encoding and decoding binary data using a Base64 (ri docs)

  • Homepage: https://github.com/ruby/base64
  • Licenses: BSD-2-Clause AND Ruby
  • Latest release: 0.2.0-r1 (published about 1 year ago)
  • Last Synced: 2026-04-11T00:02:32.579Z (20 days ago)
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Average: 6.826%
    • Dependent packages count: 13.652%
  • Maintainers (1)
alpine-edge: ruby-base64

Support for encoding and decoding binary data using a Base64

  • Homepage: https://github.com/ruby/base64
  • Licenses: BSD-2-Clause AND Ruby
  • Latest release: 0.2.0-r1 (published about 1 year ago)
  • Last Synced: 2026-04-11T00:02:25.307Z (20 days ago)
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Average: 7.19%
    • Dependent packages count: 14.38%
  • Maintainers (1)
proxy.golang.org: github.com/ruby/base64

  • Homepage:
  • Documentation: https://pkg.go.dev/github.com/ruby/base64#section-documentation
  • Licenses: other
  • Latest release: v0.3.0 (published 11 months ago)
  • Last Synced: 2026-04-24T23:01:56.211Z (6 days ago)
  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Forks count: 5.952%
    • Stargazers count: 8.663%
    • Average: 8.748%
    • Dependent packages count: 9.576%
    • Dependent repos count: 10.802%
alpine-v3.23: ruby-base64-doc

Support for encoding and decoding binary data using a Base64 (ri docs)

  • Homepage: https://github.com/ruby/base64
  • Licenses: BSD-2-Clause AND Ruby
  • Latest release: 0.2.0-r1 (published about 1 year ago)
  • Last Synced: 2026-04-07T21:02:36.041Z (23 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
  • Maintainers (1)
alpine-v3.22: ruby-base64-doc

Support for encoding and decoding binary data using a Base64 (ri docs)

  • Homepage: https://github.com/ruby/base64
  • Status: removed
  • Licenses: BSD-2-Clause AND Ruby
  • Latest release: 0.2.0-r1 (published about 1 year ago)
  • Last Synced: 2026-04-19T04:05:59.136Z (12 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
  • Maintainers (1)
alpine-v3.23: ruby-base64

Support for encoding and decoding binary data using a Base64

  • Homepage: https://github.com/ruby/base64
  • Licenses: BSD-2-Clause AND Ruby
  • Latest release: 0.2.0-r1 (published about 1 year ago)
  • Last Synced: 2026-04-09T23:07:15.179Z (21 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
  • Maintainers (1)
guix: ruby-base64

Base64 encoding/decoding in Ruby

  • Homepage: https://github.com/ruby/base64
  • Documentation: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/ruby-xyz.scm#n824
  • Licenses: bsd-2
  • Latest release: 0.3.0 (published about 2 months ago)
  • Last Synced: 2026-04-03T00:19:06.931Z (28 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-24.10: ruby-base64

  • Homepage: https://github.com/ruby/base64
  • Licenses:
  • Latest release: 0.2.0-2 (published 3 months ago)
  • Last Synced: 2026-03-09T17:03:29.155Z (about 2 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
debian-13: ruby-base64

  • Homepage: https://github.com/ruby/base64
  • Documentation: https://packages.debian.org/trixie/ruby-base64
  • Licenses:
  • Latest release: 0.2.0-2 (published 3 months ago)
  • Last Synced: 2026-03-14T17:09:42.239Z (about 2 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
alpine-v3.22: ruby-base64

Support for encoding and decoding binary data using a Base64

  • Homepage: https://github.com/ruby/base64
  • Licenses: BSD-2-Clause AND Ruby
  • Latest release: 0.2.0-r1 (published about 1 year ago)
  • Last Synced: 2026-04-19T04:05:53.671Z (12 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
  • Maintainers (1)

Dependencies

Gemfile rubygems
  • rake >= 0
  • test-unit >= 0
.github/workflows/test.yml actions
  • actions/checkout v3 composite
  • ruby/setup-ruby v1 composite
.github/workflows/sig.yml actions
  • actions/checkout v6 composite
  • ruby/setup-ruby v1 composite
.github/workflows/push_gem.yml actions
  • actions/checkout 1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 composite
  • ruby/setup-ruby d5126b9b3579e429dd52e51e68624dda2e05be25 composite
  • rubygems/release-gem e9a6361a0b14562539327c2a02373edc56dd3169 composite
  • step-security/harden-runner fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 composite
base64.gemspec rubygems

Score: 29.420328215767093