Latest0.1.0
Homepagehttps://github.com/4taras4/RSASwiftGenerator
LicenseMIT
Platformsios 9.3, requires ARC
DependenciesCommonCryptoModule
Authors

RSASwiftGenerator 🔑 🔐

CI Status
Version
License
Platform

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements ⚠️

SWIFT 4

XCode 9 +

Installation 📲

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

    pod 'RSASwiftGenerator'

Example 💻

import UIKit
import RSASwiftGenerator

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        kRSASwiftGeneratorApplicationTag = "MY.BUNDLE.ID" //setup your id for keychain saving
        kRSASwiftGeneratorKeySize = 2048 //keySize
    // generade new key pair
        RSASwiftGenerator.shared.createSecureKeyPair() { (succes,error) in
            print(succes,error)
        }
        RSASwiftGenerator.shared.keyPairExists() // check keys for exist
        RSASwiftGenerator.shared.getPublicKeyData() // get  Data refference as public key
        RSASwiftGenerator.shared.getPublicKeyReference() // / get SecKey refference for public key
        RSASwiftGenerator.shared.getPrivateKeyReference() // get SecKey refference for private key
        RSASwiftGenerator.shared.deleteSecureKeyPair() { (succes) in
            print(succes)
        }// remove keys from keychain
    }

Author 👨‍💻

Tarik, [email protected]

License

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

Latest podspec

{
    "name": "RSASwiftGenerator",
    "version": "0.1.0",
    "summary": "A wrapper for Apple's RSA Generation function written in Swift.",
    "swift_version": "4.0",
    "description": "Generade and manage your RSA keys. A wrapper for Apple's RSA Generation function written in Swift.",
    "homepage": "https://github.com/4taras4/RSASwiftGenerator",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Tarik": "[email protected]"
    },
    "source": {
        "git": "https://github.com/4taras4/RSASwiftGenerator.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "9.3"
    },
    "dependencies": {
        "CommonCryptoModule": []
    },
    "requires_arc": true,
    "source_files": "Sources/**/*.swift"
}

Pin It on Pinterest

Share This