i have a file and xor it with the string "secret"
(restart at "s" when you come to "t"). And i must import the file that i XOR.How i do tht?
THX.
Printable View
i have a file and xor it with the string "secret"
(restart at "s" when you come to "t"). And i must import the file that i XOR.How i do tht?
THX.
i'm confused...what are you on about??
XOR a string?
Well, you could traverse the string and XOR each char character. Not that hard. Use a while loop.
For the other string (SECRET), use i % strlen("secret") to get it's index, since you want it to wrap.