Skip to content

Instantly share code, notes, and snippets.

@lifeisfoo
Last active August 29, 2015 14:19
Show Gist options
  • Save lifeisfoo/0a1e68b0c0ae2f306207 to your computer and use it in GitHub Desktop.
Save lifeisfoo/0a1e68b0c0ae2f306207 to your computer and use it in GitHub Desktop.
iOS AES-256 encryption (headers)
// See for converting from e to NSString: http://ios-blog.co.uk/tutorials/quick-tips/quick-tip-converting-nsstring-to-nsdata/
@interface NSData (Encryption)
- (NSData *)AES256EncryptWithKey:(NSString *)key;
- (NSData *)AES256DecryptWithKey:(NSString *)key;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment