Solved

Dongle Lock

Posted on 2004-10-29
982 Views
Last Modified: 2008-06-24
Hi,
   I have an  executable program (exe). I dont have the source code.

 Can I lock this Exe with a dongle ??

 If possible then how do i do it ?

thnks
 
0
Question by:micky123
    3 Comments
     
    LVL 11

    Accepted Solution

    by:
    Yes. Most dongle vendors give you 3 things: the dongle itself, a library that let you verify the presence of the dongle from within you source code AND a program that just takes an existing exe  and modify it so that it runs only if the dongle is present.
    In general, if you use the library function you can achieve better security, but if you don't want to bother or don't have the source code you can just "protect" the executable.

    The exececutable is usually encrypted and modified so that upon startup it checks for the presence of the dongle and if it finds one it asks the dongle to decrypt the rest of the program. So if you don't have the dongle, you can't run the program nor disassemble it (in theory).

    Note that some vendors don't support ANY exe, but just some (usually those compiled with microsoft compilers).
    For example, my version of Hardest crashes when protecting programs compiled with cygwin g77; Rainbow Sentinel also seem to have problems witht DLL generated in Cygwin. Wibu-Key from WibuSystem has been able to protect any win32 (PE Format) exe I throw at it up to now (including those on which Sentinel and Hardest failed) - also I think they can send you a demo unit for free (at least they used to).





    0
     
    LVL 8

    Expert Comment

    by:mugman21
    You can lock it with a dongle as lbertacco stated, but using the method he mentioned will result in a drastic performance hit within the application. Wrapping an EXE and then making it look for specific hardware on start up will freeze up all but the newest computers. Your customers will not appreciate it, especially if they paid for something that is truly worth a dongle(i.e. EXPENSIVE)!

    Mugman
    0
     
    LVL 11

    Expert Comment

    by:lbertacco
    Well I don't know exactly what mugman21 mean, but checking for the presence of a serial, parallel or USB dongle plus decrypting the exec takes just a fraction of a second and you won't notice it even on very old hardware (even old 386)
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Title # Comments Views Activity
    has22 challenge 11 46
    has77  challenge 9 47
    java constructor error 8 45
    parentbit challenge 3 16
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now