Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am deuterium on github.
* I am chrisw353245 (https://keybase.io/chrisw353245) on keybase.
* I have a public key ASA3-Qqh7mbiRoTx_TVRPRL9GSWlcJqs4C_lszGKMMdZGwo
To claim this, I am signing this object:
$key = OpenSSL::Digest::SHA256.new("verysecretkey").digest
def decrypt(data)
cipher = OpenSSL::Cipher::AES256.new(:CBC)
cipher.decrypt
cipher.key = $key
begin
msg = cipher.update(data)