ShawInnes / SshKeyGenerator

DotNet Core implementation of SSH Key Generator
MIT License
37 stars 13 forks source link

passphrase for private key #13

Open daLocu opened 1 year ago

daLocu commented 1 year ago

Hi guys,

great work! Is it possible to set a passphrase for the private key? (In the Putty KeyGen, for example, this is possible.)

kind regards daLocu

ShawInnes commented 1 year ago

Thanks for raising this. I've had a quick look into it. It's quite trivial to do with .net 5 and .net 6 without adding any further dependencies, however it looks like it might be tricky to implement with backwards compatibility for NetFx 4.

What runtime are you targeting?

I'm wondering whether I should eventually drop support for older runtimes.

ShawInnes commented 1 year ago

(for future me...) This issue covers how to implement it https://github.com/dotnet/runtime/issues/51597

daLocu commented 1 year ago

I use .net 6. thank you very much

kebisekjan commented 7 months ago

Hi, please do you plan to add this feature in the near future?

mcattle commented 5 months ago

I'd also like to see this feature. (.NET 7.0/8.0)

monsen commented 4 months ago

Just started implementing key generation into an application. Would also love to see passphrase support (.NET 8)