module SimplyAES::Format::Hex
A Hex
implementation of SimplyAES::Format
that emits strings without newlines and can handle concatenated-hex strings
Public Instance Methods
dump(bytestring)
click to toggle source
# File lib/simply-aes/format.rb, line 77 def dump(bytestring) bytestring.unpack('H*')[0] end
load(formatted)
click to toggle source
# File lib/simply-aes/format.rb, line 73 def load(formatted) [formatted].pack('H*') end