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 webrick documentation-tool activerecord 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
- Host: GitHub
- URL: https://github.com/ruby/base64
- Owner: ruby
- License: other
- Created: 2020-05-22T10:28:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-11-25T01:40:59.000Z (20 days ago)
- Last Synced: 2025-11-30T22:41:07.709Z (14 days ago)
- Topics: ruby
- Language: Ruby
- Homepage:
- Size: 96.7 KB
- Stars: 28
- Watchers: 33
- Forks: 26
- Open Issues: 4
- 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: 4
- Commit comment event: 1
- Issues event: 3
- Release event: 1
- Watch event: 6
- Delete event: 8
- Issue comment event: 5
- Push event: 13
- Pull request review event: 2
- Pull request review comment event: 1
- Pull request event: 14
- Fork event: 8
Last Year
- Create event: 2
- Commit comment event: 1
- Issues event: 2
- Watch event: 6
- Delete event: 8
- Issue comment event: 3
- Push event: 11
- Pull request review event: 2
- Pull request review comment event: 1
- Pull request event: 14
- Fork event: 8
Committers metadata
Last synced: 3 days ago
Total Commits: 77
Total Committers: 21
Avg Commits per committer: 3.667
Development Distribution Score (DDS): 0.701
Commits in past year: 20
Committers in past year: 6
Avg Commits per committer in past year: 3.333
Development Distribution Score (DDS) in past year: 0.55
| Name | Commits | |
|---|---|---|
| Hiroshi SHIBATA | h****t@r****g | 23 |
| dependabot[bot] | 4****] | 11 |
| 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 |
| 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 |
| Konstantin Papkovskiy | k****n@p****m | 1 |
| Mark Young | m****g@a****o | 1 |
| Peter Goldstein | p****n@g****m | 1 |
| Yuki Kurihara | c****i@g****m | 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: 5
Total pull requests: 44
Average time to close issues: 3 months
Average time to close pull requests: 25 days
Total issue authors: 5
Total pull request authors: 14
Average comments per issue: 0.6
Average comments per pull request: 0.5
Merged pull request: 36
Bot issues: 0
Bot pull requests: 13
Past year issues: 2
Past year pull requests: 25
Past year average time to close issues: N/A
Past year average time to close pull requests: 8 days
Past year issue authors: 2
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: 17
Past year bot issues: 0
Past year bot pull requests: 11
Top Issue Authors
- justinvolleyfort (1)
- BurdetteLamar (1)
- miloprice (1)
- fastjames (1)
- sos4nt (1)
Top Pull Request Authors
- dependabot[bot] (13)
- hsbt (7)
- nobu (5)
- olleolleolle (3)
- BurdetteLamar (3)
- fastjames (2)
- ksss (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 (13)
- github_actions (11)
- documentation (4)
Package metadata
- Total packages: 7
-
Total downloads:
- rubygems: 664,154,403 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: 21
- 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 7 months ago)
- Last Synced: 2025-12-12T12:02:11.129Z (2 days ago)
- Versions: 5
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 332,549,618 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 7 months ago)
- Last Synced: 2025-12-11T06:02:26.969Z (3 days ago)
- Versions: 5
- Dependent Packages: 96
- Dependent Repositories: 6,513
- Downloads: 331,604,785 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 8 months ago)
- Last Synced: 2025-12-11T06:02:55.823Z (3 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 8 months ago)
- Last Synced: 2025-12-11T06:02:54.940Z (3 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 7 months ago)
- Last Synced: 2025-12-11T06:02:27.474Z (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-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 8 months ago)
- Last Synced: 2025-12-11T06:02:50.445Z (3 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
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 8 months ago)
- Last Synced: 2025-12-11T06:02:51.249Z (3 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
- rake >= 0
- test-unit >= 0
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
Score: 29.215881815288697