[Objc] How to get SecKeyRef from base64 coded string

This quick iOS Application Development tip will show you How to get SecKeyRefM from base64 coded string, which for iOS 7 utilises: So, let’s assume that you have a base64 coded public key, like:


The first thing that you must do, is base64 decode your to NSData:
If you are developing for iOS 7, which by now I hope you would be then you can use this: initWithBase64EncodedString::options Once you have the string decoded as NSData, you can …

Original article: http://feedproxy.google.com/~r/iosdevblog/~3/voI5L_edgtU/

warningImportant note:
this article is automatically grabbed from here. I’m not the owner and the responsible of this post content.

Alberto Pasca
Latest posts by Alberto Pasca (see all)