Sha256: 8c8c536e884c8ff950a1cc82184d469b2388cf71bb67503b9f6f0a7fe005dd79
Contents?: true
Size: 844 Bytes
Versions: 1
Compression:
Stored size: 844 Bytes
Contents
#!/usr/bin/env ruby require "pathname" bin_file = Pathname.new(__FILE__).realpath $:.unshift File.expand_path("../../lib", bin_file) require 'authentication_identifier_transposer' require 'yaml' require 'json' class Main def generate_keypair #create and configure auditing instance keypair_generator = AuthenticationIdentifierTransposer::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authentication_identifier_transposer-1.0.0 | bin/keypair-generator |