Sha256: 950b79e12aca774522deda11a6df54f94c94ed2fe0fde9aeb450c8d12a7ef0cb

Contents?: true

Size: 370 Bytes

Versions: 3

Compression:

Stored size: 370 Bytes

Contents

module Krypton
# This class contains wrapper functions around the '[en|de]code64 functions in the 'base64' library
class B64
  def self.encode(data, urlsafe=false)
    urlsafe ? Base64.urlsafe_encode64(data) : Base64.encode64(data)
  end

  def self.decode(data, urlsafe=false)
    urlsafe ? Base64.urlsafe_decode64(data) : Base64.decode64(data)
  end
end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
krypton-0.2.0 lib/core/base64.rb
krypton-0.1.8 lib/core/base64.rb
krypton-0.1.7 lib/core/base64.rb