Sha256: 82eb1b0d18bc3db0e8879645226b1dec065646a2ec8c2ea1d8f0973bf550c8b6
Contents?: true
Size: 925 Bytes
Versions: 1
Compression:
Stored size: 925 Bytes
Contents
# Conceal Simple OpenSSL-based string encryption using a shared secret. The algorithm, initialization vector, salt, crypttext, and HMAC are all encoded into a single string so it is easy to copy around. ## Requirements * Ruby 1.9.3 or newer ## Installation Add this line to your application's Gemfile: ```ruby gem 'conceal' ``` And then execute: ``` $ bundle ``` Or install it yourself as: ``` $ gem install conceal ``` ## Usage This gem provides both a ruby library and some command-line utilities. ### Library ```ruby encrypted = Conceal.encrypt('some plaintext', key: 'your shared secret', algorithm: 'aes-256-cbc') decrypted = Conceal.decrypt(encrypted, key: 'your shared secret') ``` ### Command-line ``` $ ruby -rsecurerandom -e 'print SecureRandom.urlsafe_base64(32)' | conceal encrypt key.file | pbcopy $ pbpaste | conceal decrypt key.file | pbcopy ``` ## Authors * Ben Scott (<gamepoet@gmail.com>)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
conceal-0.2.0 | README.md |