DevToys-app / DevToys

A Swiss Army knife for developers.
https://devtoys.app/
MIT License
27.46k stars 1.47k forks source link

Private/Public Keypair generator #147

Open expikr opened 2 years ago

expikr commented 2 years ago

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.

veler commented 2 years ago

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.

Andret2344 commented 2 years ago

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 ;)

expikr commented 2 years ago

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.

Andret2344 commented 2 years ago

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 ;)

expikr commented 2 years ago

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?