DevToys icon indicating copy to clipboard operation
DevToys copied to clipboard

Private/Public Keypair generator

Open expikr opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe. It's a bit cumbersome to quickly generate keypairs when making wireguard configurations. Example

Describe the solution you'd like Would be nice to have a tool that lets me generate a keypair in one click.

Describe alternatives you've considered For use case of wireguard configs there are various web tools, but it's nicer to have it in a centralized ecosystem of swiss-army devtoys here.

Additional context Add any other context or screenshots about the feature request here.

expikr avatar Jan 19 '22 20:01 expikr

Hello,

Thank you very much for your feedback. I'd be honest, I'm not familiar with wireguard, but it sounds interesting. I will keep this issue opened.

Everyone: please upvote this comment to let us know how priority this tool is.

veler avatar Jan 20 '22 06:01 veler

Hi, just one question, because I see it's not mentioned. What keypair are we talking about? There are a lot of different asymmetric encryption algorithms and standards (e.g. keys pem, pkk, id_rsa, openssl). I believe (but may be wrong) that only one of them is considered here, but which one?

I'd be a great fan of all of them, of course, but I know each should have the own issue and PR ;)

Andret2344 avatar Jan 22 '22 09:01 Andret2344

Hi, just one question, because I see it's not mentioned. What keypair are we talking about? There are a lot of different asymmetric encryption algorithms and standards (e.g. keys pem, pkk, id_rsa, openssl). I believe (but may be wrong) that only one of them is considered here, but which one?

I'd be a great fan of all of them, of course, but I know each should have the own issue and PR ;)

Ah, this suggestion is actually meant to have all of them available in the tool. It wouldn't make sense for a tool to have too narrow of a scope.

expikr avatar Jan 22 '22 11:01 expikr

I'm afraid, that one huge PR with various algorithms can be too big to implement and review. I'm pretty sure they should be added one-by-one, what is far easier to handle. Especially knowing that some keys can be simply converted to others (e.i. pkk <> pem), and those converters should be included in DevToys too. And again, in separated issue and PR. That's why it'd be good to decide which key pair should be the main/only one in this feature request.

But if I'm wrong, I'm open to discuss other points of view ;)

Andret2344 avatar Jan 22 '22 12:01 Andret2344

I guess then a good start would be just this: https://git.zx2c4.com/wireguard-tools/tree/contrib/keygen-html/wireguard.js

@Andret2344 what do you think?

expikr avatar Jan 22 '22 16:01 expikr