module VidyoIo::Util::BinASCII

A Ruby implementation of part of Python's binascii module

Public Class Methods

hexlify(bin_data) click to toggle source

Convert the supplied binary string to the hex representation

@param [String] bin_data The binary data to encode @return [String] The hex encoded binary data.

# File lib/vidyo_io/util/binascii.rb, line 9
def self.hexlify(bin_data)
  bin_data.unpack('H*').first
end