雑な暗号生成ライブラリ
Ruby Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
Guardfile
LICENSE
README.md
Rakefile
n_cipher.gemspec

README.md

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 'んおおうどどんひげんおおどおおんひげんおおどうおんひげんおおうんおうひげんおおううどう'
#=> "にゃんぱす"