Development discussion of WireGuard
 help / color / mirror / Atom feed
From: StarBrilliant <coder@poorlab.com>
To: wireguard@lists.zx2c4.com
Subject: Re: Private and public keys generation
Date: Sun, 7 Oct 2018 10:46:42 +0800	[thread overview]
Message-ID: <CA+7UkwJ2Rm668-v8R9P4XAGvZh5NnRDSHH08O+rS_G8Q5N99OQ@mail.gmail.com> (raw)
In-Reply-To: <8531EC91-607C-4525-863F-31CDD9FCC791@gmail.com>

On Sun, Oct 7, 2018 at 9:13 AM Evgeniy Ivanov <e601809@gmail.com> wrote:
>
> Hi everybody,
>
> I’m able to generate the private keys pretty straightforward with any tool I like (eg: dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64)
>
> But now, I’m more curious about generating the public keys without using wg pubkey directly. Any thoughts?
>
> Thanks!
>
> --
> Best Regards,
> Evgeniy Ivanov


Hi Evgeniy,

Try this Python code:
https://github.com/m13253/VxWireguard-Generator/blob/1859e1ed199b067764bb29b7b5cd332037f5a665/vwgen/common.py#L236

See the function "genkey" and "pubkey".

Best regards,
StarBrilliant
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

  reply	other threads:[~2018-10-07  2:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-06 11:27 Evgeniy Ivanov
2018-10-07  2:46 ` StarBrilliant [this message]
2018-10-07  4:40 ` Aaron Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+7UkwJ2Rm668-v8R9P4XAGvZh5NnRDSHH08O+rS_G8Q5N99OQ@mail.gmail.com \
    --to=coder@poorlab.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).