A .NET MAUI application that encrypts and decrypts an exe file for anti-piracy demonstration.
To run the application, you must first run the server (AstralSafeServer repo).
The program encrypts and decrypts a file called main.exe, which is located in the Resources/Raw folder of the project.
The GUI has two functions: the first uses the key generation API endpoint, while the second asks the server to validate the license.
In the first case, the client sends a uid in the format "xxxx-xxxx-xxxx-xxxx" to the server, which returns the license and a key.
In the second case, the client sends a uid and license and the server returns the key used to encrypt the license.