View previous topic :: View next topic |
Author |
Message |
emran834
Joined: 05 Jun 2007 Posts: 7
|
Posted: Thu Jul 03, 2008 10:11 pm Post subject: What is the difference between Base 32 and Hex Encoding ? |
|
|
Hi,
I am wondering which encoding is much efficient and take less time to calculate ? How should I know which one is better for me ?
Emran |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Thu Jul 03, 2008 11:48 pm Post subject: |
|
|
To quote from the documentation:
Quote: | Text Encoding. This determines how the license key data is converted into text. Hex encoding means that only 16 characters (0123456789ABCDEF) are used to encode the data. The resultant license keys are always a multiple of 4 characters long. Base32 encoding means that 32 characters (23456789ABCDEFGHJKLMNPQRSTUVWXYZ) are used to encode the data. This results in slightly shorter keys (the shortest possible key using Base32 encoding is 26 characters versus 32 characters using Hex encoding). License keys generated using Base32 encoding are not always a multiple of 4 characters long. |
It's a matter of opinion. Hex keys are slightly easier for a user to enter because the number of characters are restricted and they are multiples of 4 characters. However they will be slightly longer. If you have really long keys then base32 encoding is worth considering. Note that you have to decide this up front. You can't change this without changing the license parameters included in your application code and recompiling your application. _________________ Infralution Support |
|
Back to top |
|
|
emran834
Joined: 05 Jun 2007 Posts: 7
|
Posted: Fri Jul 04, 2008 8:56 am Post subject: |
|
|
Thanks for the reply. Ok, so which encoding takes less time to compute ? I am concerned about Performance rather then the length of the Keys.
Another question. I embed DOMAIN name "URL" in the the License Key as product Info. Domain Names are purchased by my customer to allow my software within a licensed domain name. Now, when I add domain name, the Licnese Key gets too long. My question is,."Is long license key is less efficient ? " I think, CheckSum method is less performant as it will calculate CheckSum and calculation costs performance, aint I right ? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Jul 04, 2008 12:00 pm Post subject: |
|
|
Hex will probably be marginally quicker to decode then Base32. Unless you are decoding hundreds of keys the difference is probably not worth considering.
The work required to compute a checksum would actually probably be slightly quicker then the work required to decrypt a longer key. Again I wouldn't base my decision on the relative speed unless you are decoding hundreds of keys at once - which would not be a normal scenario. _________________ Infralution Support |
|
Back to top |
|
|
|