Initial commit

This commit is contained in:
Oracle 2026-04-21 17:24:11 +02:00
commit 8acf584d28
Signed by: Oracle
SSH key fingerprint: SHA256:x4/RtnjUyuHkdvmwNDsWSfcfF1V5PNr3OpriZqOvCX8
24 changed files with 2408 additions and 0 deletions

View file

@ -0,0 +1,27 @@
package ai.nomyo;
import ai.nomyo.errors.SecurityError;
/**
* @author NieGestorben
* Copyright© (c) 2026, All Rights Reserved.
*/
public class Main {
static void main() {
SecureCompletionClient secureCompletionClient = new SecureCompletionClient();
//secureCompletionClient.generateKeys(true, "client_keys", "pokemon");
secureCompletionClient.loadKeys("client_keys/private_key.pem", "pokemon");
try {
secureCompletionClient.validateRsaKey(secureCompletionClient.getPrivateKey());
} catch (SecurityError e) {
System.out.println("RSA Key is to short!");
return;
}
System.out.println("RSA Key has correct length!");
}
}