Sha256: cb0f188ac11ccb66425397063d828ee02d2ccec71cf4d489b45ef0320e7e5d7f

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 Bytes

Contents

# frozen_string_literal: true

require 'base32/version'

require 'base32/alphabet'
require 'base32/chunk'
require 'base32/decoder'
require 'base32/encoder'
require 'base32/random'

# Module for encoding and decoding in Base32 per RFC 3548
module Base32
  def self.decode(str, alphabet = Base32::Alphabet::CHARS)
    Decoder.new(str, alphabet).call
  end

  def self.encode(str, alphabet = Base32::Alphabet::CHARS)
    Encoder.new(str, alphabet).call
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
base32.rb-0.4.2 lib/base32.rb