ok, so i'm using CCCrypt successfully with an iphone app i have. i'm encrypting a file and manually put it in the project resources to later be decrypted at runtime. no problems.. until the app is started in the ipad simulator.
it took me a while, but i found the only way i could avoid the problem is if i encrypted the exact same file using the ipad app and dropping this file with a different name in the folder next to the iphone version. it's A solution, but not a very nice one.
not sure what the problem is here. i'm using the same key, but it looks like there's something different about how the iphone sim and ipad sim encrypt text?
some important info:
ipad simulator: 3.2
iphone simulator: 4.0
iphone OS Deployment target: iPhone OS 3.1.3
anything here jump out at you as to why this is happening and what i could do to fix it? i'm ready to just throw in some ifdefs but that'd be one nasty kludge if there's an easier fix..
btw, when i say it can't be decrypted, what i mean is the call to CCCrypt returns a CCCryptorStatus of kCCDecodeError.
it took me a while, but i found the only way i could avoid the problem is if i encrypted the exact same file using the ipad app and dropping this file with a different name in the folder next to the iphone version. it's A solution, but not a very nice one.
not sure what the problem is here. i'm using the same key, but it looks like there's something different about how the iphone sim and ipad sim encrypt text?
some important info:
ipad simulator: 3.2
iphone simulator: 4.0
iphone OS Deployment target: iPhone OS 3.1.3
anything here jump out at you as to why this is happening and what i could do to fix it? i'm ready to just throw in some ifdefs but that'd be one nasty kludge if there's an easier fix..
btw, when i say it can't be decrypted, what i mean is the call to CCCrypt returns a CCCryptorStatus of kCCDecodeError.