I am trying to write an obj-c wrapper for encrypting and decrypting text files (300-1000 lines) in RC4, but am running into an issue with the openssl implementation of the alleged rc4 algorithm. I can't seem to get it to work reliably. The output is rather finicky. I can always get it to encrypt and decrypt something, but rarely a decent sized string. I have attached an example project and you will see that I put a 191 character string into it and when it decrypts it loses the last 76 characters. It is bizarre where it chooses to cut off. I have had it cut strings off at 12 characters before. If anyone has any clues as to why this is happening or where I have messed up, I would greatly appreciate the help.
Thank you,
Whit
LINK TO PROJECT
Thank you,
Whit
LINK TO PROJECT