Class: GitBlur::KeyGen::RandomKeyGen

Inherits:
KeyGenerator show all
Defined in:
lib/git-blur/keygen.rb

Instance Attribute Summary

Attributes inherited from KeyGenerator

#cipher_keys, #cipher_list

Instance Method Summary collapse

Methods inherited from KeyGenerator

#hex_keys, #initialize, #keys

Constructor Details

This class inherits a constructor from GitBlur::KeyGen::KeyGenerator

Instance Method Details

#generate_keysObject



52
53
54
55
56
57
58
# File 'lib/git-blur/keygen.rb', line 52

def generate_keys
  @cipher_list.each do |cname|
    c = OpenSSL::Cipher.new( cname )
    @cipher_keys[ cname ] = c.random_key
  end
  @cipher_keys
end