Private and public keys generation
StarBrilliant
coder at poorlab.com
Sun Oct 7 04:46:42 CEST 2018
On Sun, Oct 7, 2018 at 9:13 AM Evgeniy Ivanov <e601809 at 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
More information about the WireGuard
mailing list