Module: DiceBag::TemplateHelpers

Included in:
TemplateFile
Defined in:
lib/dice_bag/template_helpers.rb

Instance Method Summary collapse

Instance Method Details

#generate_private_keyObject


3
4
5
6
# File 'lib/dice_bag/template_helpers.rb', line 3

def generate_private_key
  require 'openssl'
  OpenSSL::PKey::RSA.generate(2048)
end