{"id":1959,"url":"https://github.com/4taras4/RSASwiftGenerator","last_synced_at":"2025-08-02T05:33:16.317Z","repository":{"id":257814926,"uuid":"118154671","full_name":"4taras4/RSASwiftGenerator","owner":"4taras4","description":"Util for generation RSA keys on your client and save to keychain or convert into Data 🔑 🔐","archived":false,"fork":false,"pushed_at":"2020-06-02T21:45:00.000Z","size":94,"stargazers_count":21,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-24T02:02:18.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/4taras4.png","metadata":{},"created_at":"2018-01-19T17:13:22.000Z","updated_at":"2024-09-14T19:05:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"956dc584-a08f-49da-a95d-81371d7860f4","html_url":"https://github.com/4taras4/RSASwiftGenerator","commit_stats":null,"previous_names":["4taras4/rsaswiftgenerator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4taras4%2FRSASwiftGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4taras4%2FRSASwiftGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4taras4%2FRSASwiftGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4taras4%2FRSASwiftGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4taras4","download_url":"https://codeload.github.com/4taras4/RSASwiftGenerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228443760,"owners_count":17920783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:15:59.932Z","updated_at":"2024-12-06T09:30:42.332Z","avatar_url":"https://github.com/4taras4.png","language":"Swift","funding_links":[],"categories":["Security"],"sub_categories":["Encryption","Other free courses"],"readme":"# RSASwiftGenerator  🔑 🔐\n\n[![CI Status](http://img.shields.io/travis/Tarik/RSASwiftGenerator.svg?style=flat)](https://travis-ci.org/Tarik/RSASwiftGenerator)\n[![Version](https://img.shields.io/cocoapods/v/RSASwiftGenerator.svg?style=flat)](http://cocoapods.org/pods/RSASwiftGenerator)\n[![License](https://img.shields.io/cocoapods/l/RSASwiftGenerator.svg?style=flat)](http://cocoapods.org/pods/RSASwiftGenerator)\n[![Platform](https://img.shields.io/cocoapods/p/RSASwiftGenerator.svg?style=flat)](http://cocoapods.org/pods/RSASwiftGenerator)\n\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements ⚠️\n\n#### SWIFT 4\n#### XCode 9 +\n\n## Installation 📲\n\nRSASwiftGenerator is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```swift\n    pod 'RSASwiftGenerator'\n```\n## Example 💻\n\n```swift\nimport UIKit\nimport RSASwiftGenerator\n\nclass ViewController: UIViewController {\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        kRSASwiftGeneratorApplicationTag = \"MY.BUNDLE.ID\" //setup your id for keychain saving\n        kRSASwiftGeneratorKeySize = 2048 //keySize\n    // generade new key pair\n        RSASwiftGenerator.shared.createSecureKeyPair() { (succes,error) in\n            print(succes,error)\n        }\n        RSASwiftGenerator.shared.keyPairExists() // check keys for exist\n        RSASwiftGenerator.shared.getPublicKeyData() // get  Data refference as public key\n        RSASwiftGenerator.shared.getPublicKeyReference() // / get SecKey refference for public key\n        RSASwiftGenerator.shared.getPrivateKeyReference() // get SecKey refference for private key\n        RSASwiftGenerator.shared.deleteSecureKeyPair() { (succes) in\n            print(succes)\n        }// remove keys from keychain\n    }\n\n```\n\n## Author 👨‍💻\n\nTarik, 4taras4@gmail.com\n\n## License\n\nRSASwiftGenerator is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4taras4%2FRSASwiftGenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4taras4%2FRSASwiftGenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4taras4%2FRSASwiftGenerator/lists"}