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 14 hours ago
JSON representation
Repository metadata
Support for encoding and decoding binary data using a Base64 representation
- Host: GitHub
- URL: https://github.com/ruby/base64
- Owner: ruby
- License: other
- Created: 2020-05-22T10:28:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2026-02-12T03:32:18.000Z (19 days ago)
- Last Synced: 2026-02-15T09:21:06.838Z (16 days ago)
- Topics: ruby
- Language: Ruby
- Homepage:
- Size: 93.8 KB
- Stars: 30
- Watchers: 33
- Forks: 27
- Open Issues: 3
- Releases: 5
-
Metadata Files:
- Readme: README.md
- License: COPYING
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
- Name: The Ruby Programming Language
- Login: ruby
- Email: info@ruby-lang.org
- Kind: organization
- Description: Repositories related to the Ruby Programming language
- Website: https://www.ruby-lang.org/
- Location: Matsue, Japan
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/210414?v=4
- Repositories: 171
- Last ynced at: 2023-04-09T03:40:20.875Z
- Profile URL: https://github.com/ruby
GitHub Events
Total
- Create event: 7
- Commit comment event: 1
- Release event: 1
- Delete event: 12
- Pull request event: 19
- Fork event: 8
- Issues event: 4
- Watch event: 6
- Issue comment event: 7
- Push event: 19
- Pull request review event: 6
- Pull request review comment event: 1
Last Year
- Delete event: 12
- Pull request event: 18
- Fork event: 5
- Issues event: 2
- Watch event: 2
- Issue comment event: 4
- Push event: 17
- Pull request review event: 6
- Pull request review comment event: 1
- Create event: 5
- Commit comment event: 1
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 | 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:
- ruby-lang.org: 2
- atg.auto: 1
- papkovskiy.com: 1
- ruby-dev.jp: 1
- jeremyevans.net: 1
- hopin.to: 1
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
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
- Total packages: 11
-
Total downloads:
- rubygems: 757,367,135 total
- Total docker downloads: 6,595,674,634
- Total dependent packages: 96 (may contain duplicates)
- Total dependent repositories: 6,513 (may contain duplicates)
- Total versions: 25
- Total maintainers: 3
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 (4 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 (28 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 (28 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 (4 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 (27 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 (27 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)
alpine-v3.23: ruby-base64
Support for encoding and decoding binary data using a Base64
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
- rake >= 0
- test-unit >= 0
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
Score: 29.350383028747306