mirror of
https://github.com/KyleBanks/XOREncryption.git
synced 2023-08-10 21:13:15 +03:00
Merge pull request #8 from bcse/patch-1
Fix Objective-C implementation, it has different result comparing to others
This commit is contained in:
commit
2e562345ac
@ -19,7 +19,7 @@
|
||||
|
||||
for(int i = 0; i < input.length; i++) {
|
||||
unichar c = [input characterAtIndex:i];
|
||||
c ^= key[i % sizeof(key)/sizeof(unichar)];
|
||||
c ^= key[i % (sizeof(key)/sizeof(unichar))];
|
||||
[output appendString:[NSString stringWithFormat:@"%C", c]];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user