Key generation in Java

Jason A. Donenfeld Jason at zx2c4.com
Tue Sep 26 00:19:47 CEST 2017


Oh, and wg genpsk (not genkey) is just:

       SecureRandom random = new SecureRandom();
       byte privateKey[] = new byte[32];
       random.nextBytes(privateKey);


More information about the WireGuard mailing list