Latest 0.1.5
Homepage https://github.com/FardadCo/LaraCrypt
License MIT
Platforms ios 9.0
Authors

LaraCrypt 0.1.x

Version
License
Platform
Language
OS Version

This is a function for encrypt and decrypt data such as Laravel encryption in Swift.

Requirements

  • iOS 9.0+
  • Swift 3 (LaraCrypt 0.1.x)

Installation

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

pod 'LaraCrypt'

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
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)

Support

Fardad Co

License

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

Latest podspec

{
    "name": "LaraCrypt",
    "version": "0.1.5",
    "summary": "Laravel encryption and decryption method for Swift.",
    "description": "Laravel encryption and decryption method with using AES-256-CBC and base64 key for Swift.",
    "homepage": "https://github.com/FardadCo/LaraCrypt",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "FardadCo": "[email protected]"
    },
    "source": {
        "git": "https://github.com/FardadCo/LaraCrypt.git",
        "tag": "0.1.5"
    },
    "source_files": "LaraCrypt/Classes/**/*",
    "platforms": {
        "ios": "9.0"
    },
    "social_media_url": "https://twitter.com/fardadco",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "3.0"
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This