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

Add passphrase support #4

Merged
merged 2 commits into from
Mar 11, 2022
Merged

Add passphrase support #4

merged 2 commits into from
Mar 11, 2022

Conversation

aymanbagabas
Copy link
Member

  • Add more tests
  • Support reading/writing keys with passphrases

The API has changed so this is a breaking change.

keygen.go Outdated Show resolved Hide resolved
* Use caarlos0/sshmarshal
* Add PublicKey(), PrivateKey(), and PrivateKeyPEM()
* Use PrivateKey() and PrivateKeyPEM() to get the unencrypted private key
* Generate password protected keys
* Read password protected keys
* Add tests
@aymanbagabas aymanbagabas merged commit c3047ad into master Mar 11, 2022
@aymanbagabas aymanbagabas deleted the passphrase branch March 11, 2022 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants