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.
- Host: GitHub
- URL: https://github.com/fardadco/laracryptobjc
- Owner: FardadCo
- License: mit
- Created: 2017-06-21T08:09:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-21T11:25:41.000Z (almost 9 years ago)
- Last Synced: 2025-09-22T02:52:02.326Z (9 months ago)
- Topics: 256, aes, aes-256, aes-encryption, cbc, cbc-mode, cocoapods, crypto, ios, laravel, objective-c, pod
- Language: Objective-C
- Size: 46.9 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LaraCryptObjC 0.1.x
[](http://cocoapods.org/pods/LaraCryptObjC)
[](http://cocoapods.org/pods/LaraCryptObjC)
[](http://cocoapods.org/pods/LaraCryptObjC)
[](https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html)
[](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.