From: "Sandor Szücs" Date: 2009-01-21T02:45:14+09:00 Subject: Re: XOR two binary strings On 12.01.2009, at 20:27, Gary Chris wrote: > am having difficulty finding how to XOR 2 binary strings. > Is there a builtin function for this ? > Something like > return string_one ^ string_two There is also facets: irb> require 'facets/string/xor' irb> "\000\000\001\001" ^ "\000\001\000\001" # => "\000\001\001\000" Hth. regards, Sandor Szücs --