class CryptoconditionsRuby::Crypto::HexEncoder

Public Instance Methods

decode(data) click to toggle source
# File lib/cryptoconditions_ruby/crypto.rb, line 86
def decode(data)
  [data].pack('H*')
end
encode(data) click to toggle source
# File lib/cryptoconditions_ruby/crypto.rb, line 82
def encode(data)
  data.to_s.unpack('H*')[0]
end