I take from your description, that you are somehow selling the software. All it takes to break your scheme, is getting the crypted cookie from another user.

I believe this is slightly harder than your user simply giving the software away to another person directly, so I would say this is ok 99.5% of the time...

If this worries too much, here's a simple way to cope with it, assuming that you have the source code of the .EXE you're selling. This is in addition to what you already done.

It then becomes a matter of checking this number in the .EXE to know who leaked his/her copy. You can also have more elaborate schemes, placing an encrypted number in there and having the code decrypt and print such number at runtime.

Of course, all this can be easily defeated if the attacker can disassemble your code...

Best regards

-lem, but some call me fokat


In reply to Re: Security using Encrypted cookies by fokat
in thread Security using Encrypted cookies by mkirank

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.