Sha256: c372d1b50afe86a1a50db6ae0ec2fa3d23adbdaa3dac213c303c113958b52b17

Contents?: true

Size: 439 Bytes

Versions: 31

Compression:

Stored size: 439 Bytes

Contents

# Write a Base64 Coder

$: << File.expand_path("../../../lib", __FILE__)
require 'asir/coder/base64'

######################################################################

begin
  input = "abc123"
  puts "input  = #{input.inspect}"

  coder = ASIR::Coder::Base64.new
  coder._log_enabled = true

  output = coder.encode(input)
  puts "output = #{output.inspect}"

  result = coder.decode(output)
  puts "result = #{result.inspect}"
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
asir-1.2.11 hack_night/solution/prob-5.rb
asir-1.2.10 hack_night/solution/prob-5.rb
asir-1.2.9 hack_night/solution/prob-5.rb
asir-1.2.8 hack_night/solution/prob-5.rb
asir-1.2.7 hack_night/solution/prob-5.rb
asir-1.2.6 hack_night/solution/prob-5.rb
asir-1.2.5 hack_night/solution/prob-5.rb
asir-1.2.3 hack_night/solution/prob-5.rb
asir-1.2.2 hack_night/solution/prob-5.rb
asir-1.2.1 hack_night/solution/prob-5.rb
asir-1.2.0 hack_night/solution/prob-5.rb
asir-1.1.12 hack_night/solution/prob-5.rb
asir-1.1.11 hack_night/solution/prob-5.rb
asir-1.1.10 hack_night/solution/prob-5.rb
asir-1.1.9 hack_night/solution/prob-5.rb
asir-1.1.8 hack_night/solution/prob-5.rb
asir-1.1.7 hack_night/solution/prob-5.rb
asir-1.1.6 hack_night/solution/prob-5.rb
asir-1.1.5 hack_night/solution/prob-5.rb
asir-1.1.4 hack_night/solution/prob-5.rb