Private and public keys generation

StarBrilliant coder at
Sun Oct 7 04:46:42 CEST 2018

On Sun, Oct 7, 2018 at 9:13 AM Evgeniy Ivanov <e601809 at> 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:

See the function "genkey" and "pubkey".

Best regards,

More information about the WireGuard mailing list