Sha256: e5d18b8016f756b4af7f79d0ddb457d8e316f02fadab56a0e1a2c3346e1619d5

Contents?: true

Size: 350 Bytes

Versions: 22

Compression:

Stored size: 350 Bytes

Contents

Execute.define_task do
  desc "secret", "Generate a cryptographically secure secret session key"
  def secret
    begin
      require 'securerandom' 
      puts SecureRandom.hex(64)
    rescue LoadError
      puts "Missing secure random generator.  Try running `rhoconnect secret` in a rails application instead."
    end #begin
  end #secret
end #do

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rhoconnect-3.4.5 commands/rhoconnect/secret.rb
rhoconnect-4.0.0.beta.10 commands/rhoconnect/secret.rb
rhoconnect-4.0.0.beta.12 commands/rhoconnect/secret.rb
rhoconnect-3.4.4 commands/rhoconnect/secret.rb
rhoconnect-3.4.3 commands/rhoconnect/secret.rb
rhoconnect-3.4.2 commands/rhoconnect/secret.rb
rhoconnect-3.3.6 commands/commands/rhoconnect/secret.rb
rhoconnect-3.3.5 commands/commands/rhoconnect/secret.rb
rhoconnect-3.3.4 commands/commands/rhoconnect/secret.rb
rhoconnect-3.3.3 commands/commands/rhoconnect/secret.rb
rhoconnect-3.3.2 commands/commands/rhoconnect/secret.rb
rhoconnect-3.3.1 commands/commands/rhoconnect/secret.rb
rhoconnect-3.3.1.beta4 commands/commands/rhoconnect/secret.rb
rhoconnect-3.3.1.beta3 commands/commands/rhoconnect/secret.rb
rhoconnect-3.3.1.beta2 commands/commands/rhoconnect/secret.rb
rhoconnect-3.2.1 commands/commands/rhoconnect/secret.rb
rhoconnect-3.2.0 commands/commands/rhoconnect/secret.rb
rhoconnect-3.2.0.beta5 commands/commands/rhoconnect/secret.rb
rhoconnect-3.2.0.beta4 commands/commands/rhoconnect/secret.rb
rhoconnect-3.2.0.beta3 commands/commands/rhoconnect/secret.rb