# File lib/new_relic/agent/obfuscator.rb, line 34
      def encode(text)
        return text unless key_bytes

        encoded = ""
        encoded.force_encoding('binary') if encoded.respond_to?( :force_encoding )
        index = 0
        text.each_byte do |byte|
          encoded.concat((byte ^ key_bytes[index % key_bytes.length]))
          index+=1
        end
        encoded
      end