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 ppk v3 support. #2

Closed
wants to merge 4 commits into from
Closed

Add ppk v3 support. #2

wants to merge 4 commits into from

Conversation

Kim-SSi
Copy link
Contributor

@Kim-SSi Kim-SSi commented Apr 27, 2023

Add ppk v3 support.
ppk v3 encryption uses Konscious.Security.Cryptography.Argon2 package and requires net46+/netstandard1.3/net6.0. Add net462 target
Change to develop SSH.NET
Rename existing ppk v2 test files
Add ppk v3 test files matching v2 files

ppk v3 encryption uses Konscious.Security.Cryptography.Argon2 package and requires net46+/netstandard1.3/net6.0.
Add net462 target
Change to develop SSH.NET
Rename existing ppk v2 test files
Add ppk v3 test files matching v2 files
@Kim-SSi
Copy link
Contributor Author

Kim-SSi commented Apr 27, 2023

Note:
Encrypted ppk v3 throws a SshException on .NET 4.0 due to the missing Argon2.
Plain ppk v3 does work on .NET 4.0

Kim-SSi added 2 commits April 27, 2023 18:02
Change windows-latest to windows-2019 as it has .NET 3.5 for SSH.NET
@Kim-SSi
Copy link
Contributor Author

Kim-SSi commented Apr 27, 2023

New: A method to use the Regex pattern to identify ppk files
public static bool IsPuttyPrivateKey(string keyText)

@darinkes
Copy link
Owner

Cleanup of the changes here: #3

@darinkes darinkes closed this Nov 29, 2023
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.

2 participants