Skip to content

FardadCo/LaraCryptObjC

Repository files navigation

LaraCryptObjC 0.1.x

Version License Platform Language OS Version

This is a function for encrypt data such as Laravel encryption in Objective C.

Requirements

  • iOS 8.0+
  • Objective C (LaraCryptObjC 0.1.x)

Installation

LaraCryptObjC is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'LaraCryptObjC'

Usage

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];

Support

Fardad Co

License

LaraCrypt is available under the MIT license. See the LICENSE file for more info.