Sha256: 91e5c0ca5b6e724f33ab598896e591722a6bde619f4e69ff0d372cee78661e30
Contents?: true
Size: 572 Bytes
Versions: 2
Compression:
Stored size: 572 Bytes
Contents
require 'ronin/translators/xor' require 'spec_helper' describe Ronin do describe Translators::XOR do before(:all) do @data = "\x00\x01\x90ABC123[]{}'" end it "should encode-out unwanted characters" do disallow = [0x00, 0x01, 0x90] xor = Translators::XOR.new(:disallow => disallow) xor.encode(@data).each_byte do |b| disallow.include?(b).should_not == true end end it "should decode XOR encoded data" do xor = Translators::XOR.new xor.decode(xor.encode(@data)).should == @data end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ronin-exploits-0.1.1 | spec/translators/xor_spec.rb |
ronin-exploits-0.1.0 | spec/translators/xor_spec.rb |