A simple tool with convienience functions for PC².
Due to the way PC^2 works, you must use legacy encryption methods. To do this, add this to your vm options:
-Djdk.crypto.KeyAgreement.legacyKDF=true
Without it, the library will always fail to load a contest.
Since the library simulates the running of a PC^2 server, the following line of code is recommended to forcibly close the server, but will also terminate the program. It is recommended you put this line at the end of your main method.
System.exit(0);
View the wiki for more documentation.