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