Added char key commet to ObjectiveC implementation

This commit is contained in:
KyleBanks 2013-10-06 16:13:51 -04:00
parent 9149a65457
commit 117bd7d8ad

View File

@ -14,7 +14,7 @@
@implementation XOREncryption @implementation XOREncryption
+(NSString *) encryptDecrypt:(NSString *)input { +(NSString *) encryptDecrypt:(NSString *)input {
char key[] = {'K', 'C', 'Q'}; char key[] = {'K', 'C', 'Q'}; //Can be any chars, and any size array
NSMutableString *output = [[NSMutableString alloc] init]; NSMutableString *output = [[NSMutableString alloc] init];
for(int i = 0; i < input.length; i++) { for(int i = 0; i < input.length; i++) {