Snark, I just found a major problem with that way of implementing the encryption.
By cycling through the bank and applying the xor to each byte, only the first number is used to encrypt it. What I mean is even if you set the key to "198490378", the person only needs the first character of the key to be able to decrypt it.
If I put the key as "87264" then I just put an "8" as the key it still decrypts it. I think thats because xor works best on big strings. So now the problem again is to apply the xor to chunks of chr bytes. Which will slow it down immensely.
I could convert the bank into a stream and maybe xor the entire stream possibly. No idea how to actually do that. Any here have any ideas on how to encrypt an entire bank or stream as one long string?
By cycling through the bank and applying the xor to each byte, only the first number is used to encrypt it. What I mean is even if you set the key to "198490378", the person only needs the first character of the key to be able to decrypt it.
If I put the key as "87264" then I just put an "8" as the key it still decrypts it. I think thats because xor works best on big strings. So now the problem again is to apply the xor to chunks of chr bytes. Which will slow it down immensely.
I could convert the bank into a stream and maybe xor the entire stream possibly. No idea how to actually do that. Any here have any ideas on how to encrypt an entire bank or stream as one long string?