Erik Veenstra wrote: > You're padding the shortest string with low values. When using > XOR to encrypt a string (my goal...), uh, you're not encrypting > most of the data: If you want to encrypt the data, maybe you should use actual cryptographic functions? "a string".crypt("another string") That's probably more secure than a homegrown xor function Daniel