Sha256: 8eb9cca160bbe8fc510d62c2470dad18fff99294fa448a41f46e53bc0331e5b0
Contents?: true
Size: 449 Bytes
Versions: 744
Compression:
Stored size: 449 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'optparse' require 'base64' opts = {} OptionParser.new do |options| options.banner = "USAGE: #{$PROGRAM_NAME} [opts] " options.on('-pSTRING', '--payload=STRING', '<Required - String to Encode>') do |p| opts[:payload] = p end end.parse! if opts.empty? puts `#{$PROGRAM_NAME} --help` exit 1 end payload = opts[:payload].to_s.scrub puts Base64.strict_encode64(payload)
Version data entries
744 entries across 744 versions & 1 rubygems