BaseHangul
Human-readable binary encoding, BaseHangul for Ruby.
Installation
Add this line to your application's Gemfile:
gem 'basehangul'
And then execute:
bundle
Or install it yourself as:
gem install basehangul
Usage
BaseHangul.encode('This is an encoded string')
# => '넥라똔먈늴멥갯놓궂뗐밸뮤뉴뗐뀄굡덜멂똑뚤'
BaseHangul.decode('넥라똔먈늴멥갯놓궂뗐밸뮤뉴뗐뀄굡덜멂똑뚤')
# => 'This is an encoded string'
Run basehangul
with no arguments to encode binary through terminal input.
basehangul
Or pass basehangul
a file to encode.
basehangul binary.txt
Run basehangul
with no arguments to decode BaseHangul string through terminal input.
basehangul -D
Or pass basehangul
a file to decode.
basehangul -D basehangul.txt
For additional command-line options:
basehangul -h
Command flag | Description |
---|---|
-D, --decode |
Decode the input. |
-h, --help |
Print this message. |
-v, --version |
Print version. |
Contributing
- Fork it (https://github.com/yous/basehangul/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
Changelog
See CHANGELOG.md.
License
Copyright (c) Chayoung You. See LICENSE.txt for further details.