NCipher

Gem Required Ruby Travis branch Coveralls branch Code Climate

文字列のUnicodeエスケープシーケンスを利用した簡易的な暗号です

Installation

Add this line to your application's Gemfile:

gem 'n_cipher'

And then execute:

$ bundle

Or install it yourself as:

$ gem install n_cipher

Usage

NCipher.configure do |config|
  config.seed = 'おうどん'
  config.delimiter = 'ひげ'
end

NCipher.encode 'にゃんぱす'
#=> "んおおうどどんひげんおおどおおんひげんおおどうおんひげんおおうんおうひげんおおううどう"

NCipher.decode 'んおおうどどんひげんおおどおおんひげんおおどうおんひげんおおうんおうひげんおおううどう'
#=> "にゃんぱす"