Sha256: e606c0baf28e8aa65ca8917e7425e35555d0f85c1d5b2bd1d1097723cad8718b

Contents?: true

Size: 410 Bytes

Versions: 23

Compression:

Stored size: 410 Bytes

Contents

# -*- coding: binary -*-

require 'rex/encoding/xor/generic'

#
# Routine for xor encoding a buffer by a 2-byte (intel word) key.  The perl
# version used to pad this buffer out to a 2-byte boundary, but I can't think
# of a good reason to do that anymore, so this doesn't.
#

module Rex
module Encoding
module Xor

class Word < Generic

  def Word.keysize
    2
  end

end end end end # Word/Xor/Encoding/Rex

Version data entries

23 entries across 23 versions & 4 rubygems

Version Path
rex-2.0.2 lib/rex/encoding/xor/word.rb
librex-0.0.71 lib/rex/encoding/xor/word.rb
librex-0.0.70 lib/rex/encoding/xor/word.rb