[REBOL] is this a xor bug?
From: zokie::libero::it at: 13-Sep-2002 15:08
Hello,
two week ago, I had developed a little tools to do Vernam's
encoding/decoding. It is a cryptographic algorythm based on XOR.
I had tested it for long time on my Rebol/View 1.2.1.3.1 (Windows) and it
works fine! Today I had used it on my Rebol/View 1.2.1.1.1 (AmigaOS) and it
don't work any more!
I had discovered that Rebol's XOR function behaves very different under
AmigaOS, Windows 9x, and WinUAE/JIT:
Amiga (1.2.1.1.1):
c: xor to-binary "cane" to-binary "casa"
== #{04001A1C}
to-string xor c to-binary "casa"
== "}w^F^]"
Window (1.2.1.3.1):
c: xor to-binary "cane" to-binary "casa"
== #{00001D04}
to-string xor c to-binary "casa"
== "cane"
WinUAE/JIT (1.2.1.1.1):
c: xor to-binary "cane" to-binary "casa"
== #{04000000}
to-string xor c to-binary "casa"
== "a^@20"
It seems to me a bug of 1.2.1.1.1. How do I workaround fastly and cleanly?
Kind regards
--
"Where did you get all those facts!?!"