Re: Need XOR solution
Re: Need XOR solution
- Subject: Re: Need XOR solution
- From: Andy Wylie <email@hidden>
- Date: Tue, 06 Aug 2002 18:38:20 +1200
on 6/8/02 10:45 AM +1200: Marc K. Myers wrote:
>
Does anyone know of a reasonably fast way to XOR blocks of data together?
>
>
I'm working on an AppleScript implementation of a one-time pad
>
crytography system. Right now I'm XORing the plaintext against the key
>
using the "Bits & Bytes" osax, which requires me to convert each byte
>
from each file to its ASCII number equivalent, run the "bitwiseXOR"
>
command on it, and then convert the result to its ASCII character
>
equivalent. This kind of logical data manipulation is so basic that
>
there's *got* to be a better approach than that! I would appreciate it
>
if someone could point me in the right direction.
>
Akua...
the list made by the xor of list {1, 2, 3} with list {4, 5, 6}
--> {1, 2, 4, 5}
I've no idea how it performs beyond that.
_____________________________ Andy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.