2

I've decided to use the TrueLicense library to enforce a copy protection for an Java application I developed. Since TrueLicense does not offer a copy protection schema, I need one. I simply want to use the Company Name in combination with the Mac ID to create a license. What I need is an algorithm to create an activation key from Company Name and the Mac ID, and I was wondering if anyone could point me in the right direction?

I understand that a knowledgeable person can crack an application within minutes. I understand that no matter what protection I use someone can always get past it. My intention is to unable simple users from copying the application onto multiple machines.

Once again, I need an algorithm to create the activation key from Company Name and Mac ID. Thank you

JasonMArcher
  • 13,296
  • 21
  • 55
  • 51
jadrijan
  • 1,418
  • 4
  • 30
  • 47

1 Answers1

2

If you want a simple scheme, you could put the company name and the MAC address together, compute a hash (e.g. SHA-1), and use that as the activation key.

For some Java code, see Compute SHA-1 of byte array

Community
  • 1
  • 1
NPE
  • 464,258
  • 100
  • 912
  • 987