multibase
Version, currently main branch1 version
- main branchlatestJul 22, 2023
github.com/radbas/multibase.cr
Base transcoder (Base62, Base58, BaseN) with multibyte character alphabet support.
0 stars
1 dependent
License: MIT
Installation
# Add this to your shard.yml
dependencies:
multibase:
github: radbas/multibase.cr
branch: mainmain is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
1.8.2- License
- MIT
- Author
- Johannes Rabausch
Dependencies
Development Dependencies
- ameba*github: crystal-ameba/amebadev
README
Multibase.cr
Base transcoder for Base62, Base58, Base85 (RFC 1924), BaseN with multibyte character alphabet support. This library performs byte by byte transcodings and is not compatible with RFC 4648.
Do not use for Base16, Base32, Base64 or basE91
Installation
-
Add the dependency to your
shard.yml:dependencies: multibase: github: radbas/multibase -
Run
shards install
Usage
require "multibase"
base62 = Multibase::Base62.encode("Hello World")
p base62 # 73XpUgyMwkGr29M
decoded = Multibase::Base62.decode("73XpUgyMwkGr29M")
p String.new(decoded) # Hello World
# custom transcoder
transcoder = Multibase::Transcoder.new("123456789custom")
# transcoder.encode()
# transcoder.decode()
Contributing
- Fork it (https://github.com/radbas/multibase/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Johannes Rabausch - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
main- Seen
- Jul 22, 2023
- Crystal
1.8.2- Indexed
- yes
Dependents
Repository
github.com/radbas/multibase.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1