https://github.com/moznion/wireguard-keytool-java
An utility library for WireGuard keys that written in Java
https://github.com/moznion/wireguard-keytool-java
Last synced: 8 months ago
JSON representation
An utility library for WireGuard keys that written in Java
- Host: GitHub
- URL: https://github.com/moznion/wireguard-keytool-java
- Owner: moznion
- License: apache-2.0
- Created: 2021-05-16T16:24:49.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T08:44:37.000Z (over 2 years ago)
- Last Synced: 2025-04-10T23:53:27.587Z (about 1 year ago)
- Language: Java
- Size: 75.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wireguard-keytool-java
[](https://github.com/moznion/wireguard-keytool-java/actions/workflows/check.yml) [](https://codecov.io/gh/moznion/wireguard-keytool-java) [](https://search.maven.org/artifact/net.moznion/wireguard-keytool/) [](https://javadoc.io/doc/net.moznion/wireguard-keytool)
An utility library for [WireGuard](https://www.wireguard.com/) keys that written in Java.
## Synopsis
```java
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
Please refer to the [](https://javadoc.io/doc/net.moznion/wireguard-keytool).
## Author
moznion ()