Skip to content

Instantly share code, notes, and snippets.

View tatums's full-sized avatar
✌️
Conway

Tatum Szymczak tatums

✌️
Conway
View GitHub Profile
@tatums
tatums / gist:5080150
Last active December 14, 2015 11:38 — forked from RiANOl/gist:1077760
require "openssl"
require "digest"
def aes128_encrypt(key, data)
key = Digest::MD5.digest(key) if(key.kind_of?(String) && 16 != key.bytesize)
aes = OpenSSL::Cipher.new('AES-128-CBC')
aes.encrypt
aes.key = key
aes.update(data) + aes.final
end
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew doctor
brew update
## Install ###################################################################