Sha256: fb03465feba539de562ae7be187d6fd06dd952161680fe6d6b4027277b440746

Contents?: true

Size: 400 Bytes

Versions: 43

Compression:

Stored size: 400 Bytes

Contents

#!/usr/bin/env ruby

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

43 entries across 43 versions & 1 rubygems

Version Path
librex-0.0.65 lib/rex/encoding/xor/word.rb
librex-0.0.63 lib/rex/encoding/xor/word.rb
librex-0.0.54 lib/rex/encoding/xor/word.rb
librex-0.0.53 lib/rex/encoding/xor/word.rb
librex-0.0.52 lib/rex/encoding/xor/word.rb
librex-0.0.51 lib/rex/encoding/xor/word.rb
librex-0.0.50 lib/rex/encoding/xor/word.rb
librex-0.0.49 lib/rex/encoding/xor/word.rb
librex-0.0.48 lib/rex/encoding/xor/word.rb
librex-0.0.47 lib/rex/encoding/xor/word.rb
librex-0.0.46 lib/rex/encoding/xor/word.rb
librex-0.0.44 lib/rex/encoding/xor/word.rb
librex-0.0.43 lib/rex/encoding/xor/word.rb
librex-0.0.42 lib/rex/encoding/xor/word.rb
librex-0.0.41 lib/rex/encoding/xor/word.rb
librex-0.0.40 lib/rex/encoding/xor/word.rb
librex-0.0.39 lib/rex/encoding/xor/word.rb
librex-0.0.38 lib/rex/encoding/xor/word.rb
librex-0.0.37 lib/rex/encoding/xor/word.rb
librex-0.0.36 lib/rex/encoding/xor/word.rb