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 repl rubygems activerecord documentation-tool webrick lalr-parser-generator parser-generator feature-flag

Last synced: about 9 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: 2 days ago

Total Commits: 86
Total Committers: 23
Avg Commits per committer: 3.739
Development Distribution Score (DDS): 0.698

Commits in past year: 29
Committers in past year: 8
Avg Commits per committer in past year: 3.625
Development Distribution Score (DDS) in past year: 0.586

Name Email Commits
Hiroshi SHIBATA h****t@r****g 26
dependabot[bot] 4****] 14
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: 3 days ago

Total issues: 6
Total pull requests: 48
Average time to close issues: 3 months
Average time to close pull requests: 24 days
Total issue authors: 6
Total pull request authors: 14
Average comments per issue: 0.5
Average comments per pull request: 0.48
Merged pull request: 38
Bot issues: 0
Bot pull requests: 16

Past year issues: 3
Past year pull requests: 29
Past year average time to close issues: N/A
Past year average time to close pull requests: 7 days
Past year issue authors: 3
Past year pull request authors: 8
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.24
Past year merged pull request: 19
Past year bot issues: 0
Past year bot pull requests: 14

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

Top Issue Authors

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

Top Pull Request Authors

  • dependabot[bot] (16)
  • 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 (16)
  • github_actions (14)
  • 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 9 months ago)
  • Last Synced: 2026-03-01T17:34:14.097Z (1 day ago)
  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 379,078,387 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 9 months ago)
  • Last Synced: 2026-02-27T20:01:51.044Z (3 days ago)
  • Versions: 5
  • Dependent Packages: 96
  • Dependent Repositories: 6,513
  • Downloads: 378,288,748 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 10 months ago)
  • Last Synced: 2026-02-03T22:26:38.415Z (27 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 10 months ago)
  • Last Synced: 2026-02-03T22:26:38.466Z (27 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 9 months ago)
  • Last Synced: 2026-02-27T20:01:52.007Z (3 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.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 10 months ago)
  • Last Synced: 2026-02-04T21:48:01.076Z (26 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
  • Licenses: BSD-2-Clause AND Ruby
  • Latest release: 0.2.0-r1 (published 10 months ago)
  • Last Synced: 2026-02-04T21:48:02.949Z (26 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-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 10 months ago)
  • Last Synced: 2026-02-03T10:00:29.419Z (28 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
ubuntu-24.10: ruby-base64

  • Homepage: https://github.com/ruby/base64
  • Licenses:
  • Latest release: 0.2.0-2 (published 22 days ago)
  • Last Synced: 2026-02-09T16:13:47.492Z (22 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
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 10 months ago)
  • Last Synced: 2026-02-03T10:00:27.989Z (28 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
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 19 days ago)
  • Last Synced: 2026-02-13T13:13:37.708Z (18 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%

Dependencies

Gemfile rubygems
  • rake >= 0
  • test-unit >= 0
.github/workflows/test.yml actions
  • actions/checkout v3 composite
  • ruby/setup-ruby v1 composite
base64.gemspec rubygems

Score: 29.350383028747306