Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/844196/n_cipher
雑な暗号生成ライブラリ
https://github.com/844196/n_cipher
Last synced: 27 days ago
JSON representation
雑な暗号生成ライブラリ
- Host: GitHub
- URL: https://github.com/844196/n_cipher
- Owner: 844196
- License: mit
- Created: 2015-10-06T23:01:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-02T15:22:15.000Z (over 8 years ago)
- Last Synced: 2024-10-09T09:18:57.062Z (about 1 month 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
[![Gem](https://img.shields.io/gem/v/n_cipher.svg)](https://rubygems.org/gems/n_cipher)
[![Required Ruby](https://img.shields.io/badge/ruby-%3E%3D%202.2.0-red.svg)](#)
[![Travis branch](https://img.shields.io/travis/844196/n_cipher.svg)](https://travis-ci.org/844196/n_cipher)
[![Coveralls branch](https://img.shields.io/coveralls/844196/n_cipher/master.svg)](https://coveralls.io/github/844196/n_cipher)
[![Code Climate](https://img.shields.io/codeclimate/github/844196/n_cipher.svg)](https://codeclimate.com/github/844196/n_cipher)![](https://cloud.githubusercontent.com/assets/4990822/10408480/9bf5d63a-6f39-11e5-9568-55e24afcbdc5.png)
文字列の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 'んおおうどどんひげんおおどおおんひげんおおどうおんひげんおおうんおうひげんおおううどう'
#=> "にゃんぱす"
```