wireguard-keytool-java
An utility library for WireGuard keys that written in Java.
Synopsis
import net.moznion.wireguard.keytool.InvalidPrivateKeyException;
import net.moznion.wireguard.keytool.WireGuardKey;
class App {
public static void doSomething() throws InvalidPrivateKeyException {
final WireGuardKey generatedKey = WireGuardKey.generate();
System.out.println(generatedKey.getBase64PrivateKey()); // => output: base64 encoded private key
System.out.println(generatedKey.getBase64PublicKey()); // => output: base64 encoded public key
}
}
Documents
Author
moznion (moznion@mail.moznion.net)