Encryption and security are topics that I’ve brought up a number of times most recently when I mentioned the CryptoCoding library that allows easy encryption of any NSCoding compatible object.
Here’s another great encryption library from Christoph Jeromilov called NSHash that provides extremely easy to use categories for generating MD5, SHA1, or SHA256 hashes from NSData and NSString objects.
Here’s an example showing how easy it is to encrypt an NSString object from the readme:
NSLog(@"MD5: %@", [string MD5]);
NSLog(@"SHA1: %@", [string SHA1]);
NSLog(@"SHA256: %@", [string SHA256]);
You can find NSHash on Github here.
There’s a number of great encryption libraries out there, but if you’re looking for the easiest solution to create hashes from NSString or NSData objects this is it.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.