npink/radiustar — comment on commit dd9d49213e55a755d4eedf00b6c4f62303fde615
File:  line 0
By charl:

This is not a backwards compatible fix. I suggest:

144 def xor_str(str1, str2)
145 i = 0
146 newstr = ""
147 str2 = str2.bytes.to_a
148 str1.each_byte do |c1|
149 c2 = str2[i]
150 newstr = newstr << (c1 ^ c2)
151 i = i+1
152 end
153 newstr
154 end