An open API service indexing awesome lists of open source software.

https://github.com/fardadco/laracryptobjc

Laravel encryption method for Objective C.
https://github.com/fardadco/laracryptobjc

256 aes aes-256 aes-encryption cbc cbc-mode cocoapods crypto ios laravel objective-c pod

Last synced: about 1 month ago
JSON representation

Laravel encryption method for Objective C.

Awesome Lists containing this project

README

          

# LaraCryptObjC 0.1.x

[![Version](https://img.shields.io/cocoapods/v/LaraCryptObjC.svg?style=flat)](http://cocoapods.org/pods/LaraCryptObjC)
[![License](https://img.shields.io/cocoapods/l/LaraCryptObjC.svg?style=flat)](http://cocoapods.org/pods/LaraCryptObjC)
[![Platform](https://img.shields.io/cocoapods/p/LaraCryptObjC.svg?style=flat)](http://cocoapods.org/pods/LaraCryptObjC)
[![Language](https://img.shields.io/badge/language-objectivec-orange.svg)](https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html)
[![OS Version](https://img.shields.io/badge/made%20with-%3C3-orange.svg)](http://cocoapods.org/pods/ObjectiveC)

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](http://cocoapods.org).
To install it, simply add the following line to your Podfile:

```ruby
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
```ruby
#import "LaraCrypt.h"

NSString *key = @"u6KuXJLIUwEUl7noY8J8H1ffDRwLC/5gjaWW1qTQ3hE=";
NSString *message = @"123456";
NSString *encryptedString = [[LaraCrypt laravelCrypt]laraEncWithMessage:message andKey:key];

```

## Support

[Fardad Co](http://fardad.co)

## License

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