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-encoder-0.1.7 lib/rex/encoding/xor/word.rb
rex-encoder-0.1.6 lib/rex/encoding/xor/word.rb
rex-encoder-0.1.5 lib/rex/encoding/xor/word.rb
rex-2.0.13 lib/rex/encoding/xor/word.rb
rex-2.0.12 lib/rex/encoding/xor/word.rb
rex-2.0.11 lib/rex/encoding/xor/word.rb
rex-encoder-0.1.4 lib/rex/encoding/xor/word.rb
rex-encoder-0.1.3 lib/rex/encoding/xor/word.rb
rex-encoder-0.1.2 lib/rex/encoding/xor/word.rb
rex-encoder-0.1.1 lib/rex/encoding/xor/word.rb
rex-encoder-0.1.0 lib/rex/encoding/xor/word.rb
rex-2.0.10 lib/rex/encoding/xor/word.rb
rex-2.0.9 lib/rex/encoding/xor/word.rb
rex-2.0.8 lib/rex/encoding/xor/word.rb
rex-2.0.7 lib/rex/encoding/xor/word.rb
rex-2.0.5 lib/rex/encoding/xor/word.rb
rex-2.0.4 lib/rex/encoding/xor/word.rb
dstruct-0.0.1 lib/rex/encoding/xor/word.rb
rex-2.0.3 lib/rex/encoding/xor/word.rb
librex-0.0.999 lib/rex/encoding/xor/word.rb