Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Need Licence Key Generator (For Java Product)

Reply
Thread Tools

Need Licence Key Generator (For Java Product)

 
 
Ravi Shankar
Guest
Posts: n/a
 
      03-12-2005
Dear all,

Can anyone suggest some of the state of the art, best tools for license key
generator?

We are releasing a product, so that we would like to generate license keys,
for evaluation, permanent, high availability etc, thanks

Open source also welcome, prefer proven tools,

Please advise, thanks

Regards,
Ravi


 
Reply With Quote
 
 
 
 
=?UTF-8?b?TMSByrtpZSBUZWNoaWU=?=
Guest
Posts: n/a
 
      03-14-2005
On Sat, 12 Mar 2005 10:58:17 +0800, Ravi Shankar wrote:

> Dear all,
>
> Can anyone suggest some of the state of the art, best tools for license
> key generator?
>
> We are releasing a product, so that we would like to generate license
> keys, for evaluation, permanent, high availability etc, thanks
>
> Open source also welcome, prefer proven tools,
>
> Please advise, thanks
>
> Regards,
> Ravi


To generate:

Generate a random Initializing Vector (iv).
Serialize your license data (data).
Calculate a hash of iv + data.
return base64_encode( iv + Encrypt (data + hash) )

To verify:

blob = base64_decrypt( input )
remove the iv from the front of blob
decrypt the rest of blob (leaving only license data).
remove hash from the end
calculate the correct hash of iv + data.
If the real hash doesn't match the hash sent in, it's not a valid license.
deserialize the license data and verify it to your heart's desire.

HTH,
La'ie Techie

 
Reply With Quote
 
M van Leeuwen
Guest
Posts: n/a
 
      03-14-2005
"Decompile the invoking class, remove the verification, compile
the new class and add it back to the jar."

Unless you have some method of _inline_ code in a lot of methods
to do a complex validation of a string from the license data,
use a tool that does something more.

You could try for example



http://freshmeat.net/projects/licensemanager

http://www.agilis-sw.com/ezlm/



But mostly the entrypoint to the licensemanager is vunerable.

With decompilers you can remove those calls from the software.

Obfuscators make it a lot harder, but not impossible.



I haven't seen any products inserting bytecode to prevent this

weakness. Please inform me if you do (pryxan at yahoo).
I also like to have any code which does not decompile or
decompiles to unreadable and unusable code.


Regards,
Michael.

=?UTF-8?b?TMSByrtpZSBUZWNoaWU=?=
<laie@win_remove_get_nospam_solutions.com> wrote in
news:1110786817.11fe281a25ddc1e437c2f7ae5af6ede6@t eranews:

> On Sat, 12 Mar 2005 10:58:17 +0800, Ravi Shankar wrote:
>
>> Dear all,
>>
>> Can anyone suggest some of the state of the art, best tools for
>> license key generator?
>>
>> We are releasing a product, so that we would like to generate license
>> keys, for evaluation, permanent, high availability etc, thanks
>>
>> Open source also welcome, prefer proven tools,
>>
>> Please advise, thanks
>>
>> Regards,
>> Ravi

>
> To generate:
>
> Generate a random Initializing Vector (iv).
> Serialize your license data (data).
> Calculate a hash of iv + data.
> return base64_encode( iv + Encrypt (data + hash) )
>
> To verify:
>
> blob = base64_decrypt( input )
> remove the iv from the front of blob
> decrypt the rest of blob (leaving only license data).
> remove hash from the end
> calculate the correct hash of iv + data.
> If the real hash doesn't match the hash sent in, it's not a valid
> license. deserialize the license data and verify it to your heart's
> desire.
>
> HTH,
> La'ie Techie
>
>


 
Reply With Quote
 
Jesper Nordenberg
Guest
Posts: n/a
 
      03-14-2005
L??ie Techie <laie@win_remove_get_nospam_solutions.com> wrote in message news:<1110786817.11fe281a25ddc1e437c2f7ae5af6ede6@ teranews>...
> To generate:
>
> Generate a random Initializing Vector (iv).
> Serialize your license data (data).
> Calculate a hash of iv + data.
> return base64_encode( iv + Encrypt (data + hash) )
>
> To verify:
>
> blob = base64_decrypt( input )
> remove the iv from the front of blob
> decrypt the rest of blob (leaving only license data).
> remove hash from the end
> calculate the correct hash of iv + data.
> If the real hash doesn't match the hash sent in, it's not a valid license.
> deserialize the license data and verify it to your heart's desire.


Note that if a symmetric cipher is used this would be a very bad
license algorithm as the key must be included in the licensed software
and could thus easily be used to create valid licenses (no
modifications to the software would be required). An asymmetric cipher
like RSA where the private key is kept secret would be a better
option. However, it's still very easy to modify the software to accept
any license key as valid.

/Jesper Nordenberg
 
Reply With Quote
 
Ravi Shankar
Guest
Posts: n/a
 
      03-16-2005
Hi all,

Thanks for all suggestions and valuable advises. Will try RSA with a private
key, thanks

Regards,
ravi
"Ravi Shankar" <> wrote in message
news:d0tlsa$gkg$...
> Dear all,
>
> Can anyone suggest some of the state of the art, best tools for license
> key generator?
>
> We are releasing a product, so that we would like to generate license
> keys, for evaluation, permanent, high availability etc, thanks
>
> Open source also welcome, prefer proven tools,
>
> Please advise, thanks
>
> Regards,
> Ravi
>



 
Reply With Quote
 
pould pould is offline
Junior Member
Join Date: Sep 2006
Posts: 3
 
      09-16-2007
An alternative to those products mentioned is LM-X License Manager.

We've used it for a while now and it's really good.

See LM-X License Manager.
http://www.x-formation.com

Good luck.

Poul
 
Reply With Quote
 
Eugen Kocak Eugen Kocak is offline
Junior Member
Join Date: Jan 2010
Posts: 1
 
      01-30-2010
Another alternative is BeeSoft Abeona at beesoft.eu/products/abeona.

It is license generator for java. License is not simple key, but standard properties file protected by MD5 checksum and RSA cryptography.

But you will need more programming to customize this library for your needs.

Maybe you find it useful.

Eugen
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: XP licence - accidently wrong licence - can i change richard Computer Support 13 05-19-2010 08:58 AM
Licence code storing for java app mark Java 2 11-08-2006 07:42 AM
exchanging 32bit licence to 64bit licence problem =?Utf-8?B?cnVzc193aWxs?= Windows 64bit 14 05-12-2005 05:52 PM
putting a licence key in a java program Andy Fish Java 13 06-22-2004 08:43 AM
Java licence JavaJug Java 0 05-19-2004 10:40 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57