Skip to content

Instantly share code, notes, and snippets.

View lucashenning's full-sized avatar
🌴
Miami

Lucas H. lucashenning

🌴
Miami
View GitHub Profile
@marcbowes
marcbowes / gist:1899731
Created February 24, 2012 09:31
Envelope encryption in Ruby using OpenSSL
# Explanation at http://stackoverflow.com/questions/5212213/ruby-equivalent-of-php-openssl-seal/9428217#9428217
# Implementation
class EnvelopeEncryption
require "openssl"
# This method takes in plaintext and produces ciphertext and an