Popularity
0.9
Stable
Activity
0.0
Stable
21
4
1

Programming language: Swift
License: MIT License
Tags: Encryption     Security    
Latest version: v1.0.5

RSASwiftGenerator alternatives and similar libraries

Based on the "Encryption" category.
Alternatively, view RSASwiftGenerator alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of RSASwiftGenerator or a related project?

Add another 'Encryption' Library

README

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.


*Note that all licence references and agreements mentioned in the RSASwiftGenerator README section above are relevant to that project's source code only.