Sha256: a03f2f5a7381adcc26346b89c86f95ac6db48671d38e9270175992b2062561cd

Contents?: true

Size: 349 Bytes

Versions: 21

Compression:

Stored size: 349 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

21 entries across 21 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 commands/rhoconnect/secret.rb
rhoconnect-7.5.1 commands/rhoconnect/secret.rb
rhoconnect-7.4.1 commands/rhoconnect/secret.rb
rhoconnect-7.1.17 commands/rhoconnect/secret.rb
rhoconnect-6.2.0 commands/rhoconnect/secret.rb
rhoconnect-6.0.11 commands/rhoconnect/secret.rb
rhoconnect-5.5.18 commands/rhoconnect/secret.rb
rhoconnect-5.5.17 commands/rhoconnect/secret.rb
rhoconnect-5.5.15 commands/rhoconnect/secret.rb
rhoconnect-5.5.0.22 commands/rhoconnect/secret.rb
rhoconnect-5.5.2 commands/rhoconnect/secret.rb
rhoconnect-5.5.0.7 commands/rhoconnect/secret.rb
rhoconnect-5.5.0.3 commands/rhoconnect/secret.rb
rhoconnect-5.5.0 commands/rhoconnect/secret.rb
rhoconnect-5.1.1 commands/rhoconnect/secret.rb
rhoconnect-4.0.4 commands/rhoconnect/secret.rb
rhoconnect-4.0.3 commands/rhoconnect/secret.rb
rhoconnect-4.0.2 commands/rhoconnect/secret.rb
rhoconnect-4.0.1 commands/rhoconnect/secret.rb
rhoconnect-4.0.0 commands/rhoconnect/secret.rb