Project

conceal

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Encrypts and decrypts strings using OpenSSL.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.6
>= 0.8.7
~> 3.0

Runtime

~> 0.18
 Project Readme

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:

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

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