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

gaurav.bhorkar

gaurav.bhorkar

@gauravbhorkar-Pf9kZD Oct 27, 2024
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.

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Nov 2, 2010

    Try huffman algorithm
    it may help you
  • Morningdot Hablu

    Morningdot Hablu

    @morningdot-6Xuj4M Nov 2, 2010

    Lossless compression is also a good option.
  • gaurav.bhorkar

    gaurav.bhorkar

    @gauravbhorkar-Pf9kZD Nov 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!
  • themask

    themask

    @themask-kPDDPY Nov 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
  • silverscorpion

    silverscorpion

    @silverscorpion-iJKtdQ Nov 25, 2010

    You can use md5 to compress it into a 32 character hexadecimal string.. It's easy and readily available. Foolproof as well..