Sha256: dd0f1a599fa11cfb6390bc9fd350fedaa059c64814b034a076486aabefc897b0

Contents?: true

Size: 403 Bytes

Versions: 43

Compression:

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

	def Dword.keysize
		4
	end

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

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
librex-0.0.35 lib/rex/encoding/xor/dword.rb
librex-0.0.34 lib/rex/encoding/xor/dword.rb
librex-0.0.33 lib/rex/encoding/xor/dword.rb
librex-0.0.32 lib/rex/encoding/xor/dword.rb
librex-0.0.31 lib/rex/encoding/xor/dword.rb
librex-0.0.30 lib/rex/encoding/xor/dword.rb
librex-0.0.29 lib/rex/encoding/xor/dword.rb
librex-0.0.28 lib/rex/encoding/xor/dword.rb
librex-0.0.27 lib/rex/encoding/xor/dword.rb
librex-0.0.26 lib/rex/encoding/xor/dword.rb
librex-0.0.25 lib/rex/encoding/xor/dword.rb
librex-0.0.23 lib/rex/encoding/xor/dword.rb
librex-0.0.21 lib/rex/encoding/xor/dword.rb
librex-0.0.19 lib/rex/encoding/xor/dword.rb
librex-0.0.17 lib/rex/encoding/xor/dword.rb
librex-0.0.13 lib/rex/encoding/xor/dword.rb
librex-0.0.12 lib/rex/encoding/xor/dword.rb
librex-0.0.7 lib/rex/encoding/xor/dword.rb
librex-0.0.6 lib/rex/encoding/xor/dword.rb
librex-0.0.5 lib/rex/encoding/xor/dword.rb