This is a function for encrypt data such as Laravel encryption in Objective C.
- iOS 8.0+
- Objective C (LaraCryptObjC 0.1.x)
LaraCryptObjC is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'LaraCryptObjC'
There is a main public function in LaraCrypt calss:
encrypt
- For use this fucntion you should set two parameters contain base64 key with 44 characters length and your message as a string that you want to be encrypted
#import "LaraCrypt.h"
NSString *key = @"u6KuXJLIUwEUl7noY8J8H1ffDRwLC/5gjaWW1qTQ3hE=";
NSString *message = @"123456";
NSString *encryptedString = [[LaraCrypt laravelCrypt]laraEncWithMessage:message andKey:key];
LaraCrypt is available under the MIT license. See the LICENSE file for more info.