Sha256: 54c4cc68f96fdd5681fad31bcaf82ba186047c999ef7e678b4d8f18ea02ec790

Contents?: true

Size: 822 Bytes

Versions: 40

Compression:

Stored size: 822 Bytes

Contents

#!/usr/bin/env ruby
require "pathname"
bin_file = Pathname.new(__FILE__).realpath
$:.unshift File.expand_path("../../lib", bin_file)

require 'soar_authentication_token'
require 'yaml'
require 'json'

class Main

  def generate_keypair
    #create and configure auditing instance
    keypair_generator = SoarAuthenticationToken::KeypairGenerator.new
    private_key, public_key = keypair_generator.generate
    configuration = {
      'private_key' => private_key,
      'public_key' => public_key
    }
    puts "------------"
    puts "YAML Format:"
    puts "------------"
    print configuration.to_yaml
    puts ""
    puts "------------"
    puts "JSON Format:"
    puts "------------"
    print configuration.to_json
    puts ""
    puts ""
    puts "------------"

  end
end

main = Main.new
main.generate_keypair

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
soar_authentication_token-7.1.1 bin/keypair-generator
soar_authentication_token-7.1.0 bin/keypair-generator
soar_authentication_token-7.0.1 bin/keypair-generator
soar_authentication_token-7.0.0 bin/keypair-generator
soar_authentication_token-6.1.1 bin/keypair-generator
soar_authentication_token-6.1.0 bin/keypair-generator
soar_authentication_token-6.0.9 bin/keypair-generator
soar_authentication_token-6.0.8 bin/keypair-generator
soar_authentication_token-6.0.7 bin/keypair-generator
soar_authentication_token-6.0.5 bin/keypair-generator
soar_authentication_token-6.0.4 bin/keypair-generator
soar_authentication_token-6.0.3 bin/keypair-generator
soar_authentication_token-6.0.2 bin/keypair-generator
soar_authentication_token-6.0.1 bin/keypair-generator
soar_authentication_token-6.0.0 bin/keypair-generator
soar_authentication_token-5.0.3 bin/keypair-generator
soar_authentication_token-5.0.2 bin/keypair-generator
soar_authentication_token-5.0.1 bin/keypair-generator
soar_authentication_token-5.0.0 bin/keypair-generator
soar_authentication_token-4.0.1 bin/keypair-generator