Menu

Verify key

kamcio1

Add new Console project.
In main file write:

:::java

package verify;
import O_DRM.VerifySerial;
import java.util.Scanner;

public class Keygen {
    public static void main(String args[])
    {
        int min = 100, max = 999;
        String serial;

        Scanner scan = new Scanner(System.in); // Input
        System.out.print("Your serial: "); serial = scan.nextLine(); 
        VerifySerial ver = new VerifySerial(serial, min, max);
            ver.Verify();
                if (ver.IsGood)
                {
                    System.out.println("Good serial!");
                }
                else
                {
                    System.out.println("Bad serial!");
                }
        scan.close();
    }

}

For example, if you write 100255999, serial will be good, but if you write 1000999, it cannot be good.
For create unique keys, use the program "Keygen" from the wiki.

Supported in: 1.0


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.