CocoaPods trunk is moving to be read-only. Read more on the blog, there are 12 months to go.
| TestsTested | ✗ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Aug 2017 |
| SwiftSwift Version | 3.0 |
| SPMSupports SPM | ✗ |
Maintained by Fardad Co.
This is a function for encrypt and decrypt data such as Laravel encryption in Swift.
LaraCrypt is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'LaraCrypt'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
decrypt - For use this fucntion you should set two parameters contain base64 key with 44 characters length and your encrypted message as a string that you want to be decrypted
let key : String = "u6KuXJLIUwEUl7noY8J8H1ffDRwLC/5gjaWW1qTQ3hE="
let message : String = "123456"
let encryptedString : String = LaraCrypt().encrypt(Message: message, Key: key)
let decryptedString : String = LaraCrypt().decrypt(Message: encryptedString, Key: key)LaraCrypt is available under the MIT license. See the LICENSE file for more info.