Skip to content

Instantly share code, notes, and snippets.

@nexces
Created October 26, 2012 12:21
Show Gist options
  • Select an option

  • Save nexces/3958473 to your computer and use it in GitHub Desktop.

Select an option

Save nexces/3958473 to your computer and use it in GitHub Desktop.
test.rb
require 'openssl'
c = OpenSSL::Cipher.new('bf')
c.encrypt
p c.key_len
c.key_len = 5
p c.key_len
c.key = '01234'
p c.key_len
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment