Module: Bosh::Director::EncryptionHelper

Included in:
VmCreator
Defined in:
lib/bosh/director/encryption_helper.rb

Instance Method Summary collapse

Instance Method Details

#generate_agent_credentialsObject



3
4
5
6
7
8
# File 'lib/bosh/director/encryption_helper.rb', line 3

def generate_agent_credentials
  ["crypt_key", "sign_key"].inject({}) do |credentials, key|
    credentials[key] = SecureRandom.base64(48)
    credentials
  end
end