CrazyEngineers
  • How to compress/encrypt/convert large string into a small string?

    gaurav.bhorkar

    gaurav.bhorkar

    @gauravbhorkar-Pf9kZD
    Updated: Oct 27, 2024
    Views: 1.1K
    I am developing an application which requires activation over phone. For this process, the program generates an ID (which comprises of the product key and motherboard serial number) which the user tells to our representative.

    The problem which I am facing is that the ID which is generated by the program is very large (about 80 characters), and it is obviously very difficult for the user to dictate those 80 characters to our representative. 😔

    Is there any method to encrypt or compress those 80 characters into a set of small string of about 40 - 45 chars ?

    We're developing this software over the .net framework.
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Manish Goyal

    MemberNov 2, 2010

    Try huffman algorithm
    it may help you
    Are you sure? This action cannot be undone.
    Cancel
  • Morningdot Hablu

    MemberNov 2, 2010

    Lossless compression is also a good option.
    Are you sure? This action cannot be undone.
    Cancel
  • gaurav.bhorkar

    MemberNov 3, 2010

    Thanks for the suggestions. I've found a workaround to generate a smaller ID (30 chars). I've put the product key and the serial no. as it is in the ID and jumbled the sequence of characters. No problem now!
    Are you sure? This action cannot be undone.
    Cancel
  • themask

    MemberNov 25, 2010

    gaurav.bhorkar,
    I'm looking for a similar way for my product.
    Can you please let me know how to do this, so that i can take that, my software is not copied and used illegally
    Are you sure? This action cannot be undone.
    Cancel
  • silverscorpion

    MemberNov 25, 2010

    You can use md5 to compress it into a 32 character hexadecimal string.. It's easy and readily available. Foolproof as well..
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register