Sha256: c0a3d479318f77450ae655aa022d63bee669fafd0da85c5536b4584755f448be

Contents?: true

Size: 413 Bytes

Versions: 23

Compression:

Stored size: 413 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 Dword < Generic

  def Dword.keysize
    4
  end

end end end end # Dword/Xor/Encoding/Rex

Version data entries

23 entries across 23 versions & 4 rubygems

Version Path
rex-encoder-0.1.7 lib/rex/encoding/xor/dword.rb
rex-encoder-0.1.6 lib/rex/encoding/xor/dword.rb
rex-encoder-0.1.5 lib/rex/encoding/xor/dword.rb
rex-2.0.13 lib/rex/encoding/xor/dword.rb
rex-2.0.12 lib/rex/encoding/xor/dword.rb
rex-2.0.11 lib/rex/encoding/xor/dword.rb
rex-encoder-0.1.4 lib/rex/encoding/xor/dword.rb
rex-encoder-0.1.3 lib/rex/encoding/xor/dword.rb
rex-encoder-0.1.2 lib/rex/encoding/xor/dword.rb
rex-encoder-0.1.1 lib/rex/encoding/xor/dword.rb
rex-encoder-0.1.0 lib/rex/encoding/xor/dword.rb
rex-2.0.10 lib/rex/encoding/xor/dword.rb
rex-2.0.9 lib/rex/encoding/xor/dword.rb
rex-2.0.8 lib/rex/encoding/xor/dword.rb
rex-2.0.7 lib/rex/encoding/xor/dword.rb
rex-2.0.5 lib/rex/encoding/xor/dword.rb
rex-2.0.4 lib/rex/encoding/xor/dword.rb
dstruct-0.0.1 lib/rex/encoding/xor/dword.rb
rex-2.0.3 lib/rex/encoding/xor/dword.rb
librex-0.0.999 lib/rex/encoding/xor/dword.rb