Skip to content

Instantly share code, notes, and snippets.

View rrrene's full-sized avatar
👶
Chasing a toddler. I may be slow to respond.

René Föhring rrrene

👶
Chasing a toddler. I may be slow to respond.
View GitHub Profile
@rrrene
rrrene / ecc.rb
Created May 15, 2013 10:50 — forked from bkerley/ecc.rb
# derived from http://h2np.net/tips/wiki/index.php?RubyOpenSSLDigitalSignatureSample
require 'openssl'
require 'base64'
include OpenSSL
group_name = 'secp521r1'
message = '10000 fartbux sent to bryce from a can of beans'
key = PKey::EC.new(group_name)
key = key.generate_key