https://github.com/844196/n_cipher
雑な暗号生成ライブラリ
https://github.com/844196/n_cipher
Last synced: 4 months ago
JSON representation
雑な暗号生成ライブラリ
- Host: GitHub
- URL: https://github.com/844196/n_cipher
- Owner: 844196
- License: mit
- Created: 2015-10-06T23:01:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-02T15:22:15.000Z (over 9 years ago)
- Last Synced: 2025-02-06T05:43:45.451Z (4 months ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/n_cipher
- Size: 71.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NCipher
[](https://rubygems.org/gems/n_cipher)
[](#)
[](https://travis-ci.org/844196/n_cipher)
[](https://coveralls.io/github/844196/n_cipher)
[](https://codeclimate.com/github/844196/n_cipher)
文字列のUnicodeエスケープシーケンスを利用した簡易的な暗号です
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'n_cipher'
```And then execute:
```shellsession
$ bundle
```Or install it yourself as:
```shellsession
$ gem install n_cipher
```## Usage
```ruby
NCipher.configure do |config|
config.seed = 'おうどん'
config.delimiter = 'ひげ'
endNCipher.encode 'にゃんぱす'
#=> "んおおうどどんひげんおおどおおんひげんおおどうおんひげんおおうんおうひげんおおううどう"NCipher.decode 'んおおうどどんひげんおおどおおんひげんおおどうおんひげんおおうんおうひげんおおううどう'
#=> "にゃんぱす"
```