Class: CryptFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-common/v5/CryptFactory.rb

Class Method Summary collapse

Class Method Details

.create_from_payload(payload) ⇒ Object



2
3
4
5
# File 'lib/ruby-common/v5/CryptFactory.rb', line 2

def self.create_from_payload(payload)
  header = payload.byteslice(0,2)
  return create_crypt(header)
end