security - Locking a Java application to a particular PC -


i want devise way prevent piracy of app or @ least make more difficult. app installed in standalone pc , want make difficult person copy installation, or clone hard drive, , deploy on second pc. using mac address best way? using wmi mother board id?

you can generate machine id based on mac address of network card, or based on pc name (weaker protection), , make algorithm translate machine id activation key.

so can activate program based on unique identifier based on pc. however there no easy way calculate unique machine id in java ... if run application on windows can read other hardware values wmi, , mix(for example mix hd serial + mb serial + cpu serial + mac address) them 1 key should enforce better protection.

keep in mind if put protection system in application should @ least obfuscate bytecode, because java bytecode decompilable , 1 programmer decompile application able discover , use algoritm integrated validation code ...


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -