Xor-String

(xor-string string1 string2) -> string

Performs a bitwise XOR operation on string1, using string2 as a mask. For a more technical explanation, see Wikipedia's entry on XOR Ciphers.

Example:

>> (define a (xor-string "test" "test2"))
:: #f

(a cannot be output to the console)

>> (xor-string a "test2")
:: "test