Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can i generate RSA Public key and private key in Swift #106

Closed
calvinsug opened this issue Feb 19, 2018 · 2 comments
Closed

Can i generate RSA Public key and private key in Swift #106

calvinsug opened this issue Feb 19, 2018 · 2 comments

Comments

@calvinsug
Copy link

calvinsug commented Feb 19, 2018

Does this library implement SecKeyGeneratePair to generate key pair for public key and private key ? I need to generate different key pair for each device and i would like to generate it when user attempt to login. So, are there any way to generate key pair from the swift code instead generate from my terminal ?

@calvinsug calvinsug reopened this Feb 19, 2018
@ldiqual
Copy link
Contributor

ldiqual commented Mar 7, 2018

@calvinsug SwiftyRSA doesn't offer key generation but it seems like something that should be offered. The primary goal of the library is to import existing keys because that's what hard to do. I'm happy to review any PR that would help getting us to something like SwiftyRSA.generateKeyPair(padding: ...) -> (PublicKey, PrivateKey).

@4taras4
Copy link

4taras4 commented Mar 14, 2018

@calvinsug You can use my library for generating RSA keys
https://github.com/4taras4/RSASwiftGenerator
after that use seckey or data for using SwiftyRSA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants