I'm new to encrypting in iOS and i'm stuck with AES128 encryption. Is there some pre-built library (perhaps OpenSSL) which i can use easily?
If so, how do I implement it and use it? Are there tutorials?
I've found several "easy" tutorials how to build OpenSSL and import it to Xcode, but none of them worked for me. Also, it needs to be compatible with iOS4, so solution via CommonCrypto doesn't seem to be a solution (since several essential methods are only iOS 5+ compatible).
Thanks for any kind of help, i'm pulling my hair out over this :)
This is written in Obj-C and allows for AES128 encryption of NSString and NSData.
I take it back. It uses CommonCrypt.
If anyone is still interested in this question i found a solution on http://dotmac.rationalmind.net/2009/02/aes-interoperability-between-net-and-iphone/ . On this page you can download very simple obj-c classes which are compatible with iOS4 and doesn't need any 3rd party libraries.
Related
Simple question: Did anyone manage to perform local receipt validation with CommonCrypto framework instead of OpenSSL and if yes - is there any sample code how to do that?
So, replace all OpenSSL related things from Apple docs (https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateLocally.html) with CommonCrypto framework?
Something which looks like solution for OSX exists in here https://gist.github.com/sazameki/3026845 but I would like to know if there's anything like that available somewhere for iOS.
Thanks in advance for any kind of answer or advice.
I'm trying to fint the answer to a question that has been asked before,but i still couldn't find the proper answer.
I'm looking for a lightweight free 1D/2D barcode scanner library/api/sdk. I've tried
zxing
, but its way too enormous,
scandit
is not free, i couldn't compile
BXMobile
, etc.
Someone who has experience with barcode scanners could propose me a good suggestion for what i should use?
Thanks in advance!
Zoli
The best free one I found was ZBarSDK
http://zbar.sourceforge.net/iphone/sdkdoc/
I've used ZXing before. If you had trouble with it then use the CocoaPods version...
http://cocoapods.org/?q=zxing
It deals with all the includes and everything. CocoaPods really is the way forward.
https://codeload.github.com/cgreening/BarCodeExample/zip/master
iOS7 has built in functionality scanning BarCodes not sepearate sdk is required; if your deployment target is iOS7
I've had good results with ZXingObjC, which as the name suggests is an ObjC port of ZXing, and which is also on CocoaPods.
Will apple choose to not allow an app to go to the app store if we use JSONKit to parse JSON's from our php document? I would like to use JSONSerializable but that is for ios5 and I am not going to alienate ios4 members on 3gs by doing that.
You can use JSONKit in an iPhone app. Apple will not reject it based on that.
It's using private APIs they get upset about. :)
No. You can import your own class or library to parse JSON that you want. So long as you aren't using anything within Apple API's that are undocumented, you will be more than fine. Those are all well established parsers. No worries.
Nope, assumably they are unable to tell what source files you use in your application. JSONKit is licensed under the BSD License which allows redistribution;
Redistribution and use in source and binary forms are permitted
provided that the above copyright notice...
I am trying to use Ben Gottliebs Twitter-OAuth-iPhone within an iOS5 app that uses ARC.
I already flagged the files with -fno-objc-arc. But now I get a lot of errors. I don't know where to start. Without ARC the framework seems to work just fine. Any help would be appreciated.
Edit: it seems that is has something to do with SecKeychainItemRef
I can not find the answer here: https://stackoverflow.com/questions/3675522/how-to-use-mgtwitterengine-for-iphone
I hope is not considered bad etiquette to recommend my own project, but I believe it's relevant to this question, so...
I just published a new OAuth library to GitHub that's fully ARC compatible. It comes with a working demo that implements the whole Twitter OAuth flow and allows you to post a tweet. You can find it here: RSOAuthEngine.
You might want to consider using the official Twitter API that's available with iOS 5. Here's a post on how to use it: http://www.peterfriese.de/the-accounts-and-twitter-framework-on-ios-5/
You could just tell the compiler not to use ARC on the files included in that library.
ios5 ARC what is the compiler flag to exclude a file from ARC?
Does anyone know of an iOS library that allows us to encrypt using AES128 CFB mode with not padding. Looks like commoncrypto does not support this .
Thanks
I'd suggest pushing OpenSSL into your project, if possible. A quick search for "ios openssl" returns a first hit for Easy inclusion of OpenSSL into iOS projects. See also AES interoperability between .Net and iPhone?
Beware that without padding, you'll need to feed the cipher blocks of the correct size.