jfig.utils
Class RegistrationKeyManager
java.lang.Object
jfig.utils.RegistrationKeyManager
- public final class RegistrationKeyManager
- extends java.lang.Object
manage and check registration keys for jfig.
A single key currently consists of six groups of four hex digits each,
separated by hyphens, e.g. "9a13-babe-cafe-0042-1f83-9876".
The algorithm used is very simple; cracking it will offer no real
satisfaction to hackers, but it will (hopefully) take more of your time
than paying the registration fee...
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getRegistrationKeyManager
public static final RegistrationKeyManager getRegistrationKeyManager()
getVersionID
public final int getVersionID()
response
public final int response(int challenge)
setKey
public final void setKey(java.lang.String s)
isValid
public final boolean isValid()
isValidForProperty
public final boolean isValidForProperty(java.lang.String propertyName)
print
public void print(int[] data)
getKeyFromProperty
public void getKeyFromProperty(java.lang.String propertyName)
checkKeyGen
public static void checkKeyGen(int x,
int y)
main
public static void main(java.lang.String[] argv)
- selftest.
We query SetupManager the current registration key and check it.
As an alternative, we read and parse the input file specified on
the command line with "-file <filename>", which is expected
to contain one key per line.