Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Secure DLL

Secure DLL

Scheduled Pinned Locked Moved C / C++ / MFC
securitycryptographyregexquestionlounge
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    antoine_boillier
    wrote on last edited by
    #1

    Hi, Does somebody know a secure solution to ensure that the DLL an application is talking to hasn't been replaced with a fake one? I am thinking about implementing a "handshaking" procedure. With this method, the application sends a "challenge" random message to the DLL. The DLL responds with a value calculated using a one-way hash function. The application checks the response against its own calculation of the expected hash value. If the values match, the authentication is acknowledged; otherwise the application is terminated. Do you know other/better solutions? Remark: I am developing both the application part and the DLL part. Thanks. antoine

    C S 2 Replies Last reply
    0
    • A antoine_boillier

      Hi, Does somebody know a secure solution to ensure that the DLL an application is talking to hasn't been replaced with a fake one? I am thinking about implementing a "handshaking" procedure. With this method, the application sends a "challenge" random message to the DLL. The DLL responds with a value calculated using a one-way hash function. The application checks the response against its own calculation of the expected hash value. If the values match, the authentication is acknowledged; otherwise the application is terminated. Do you know other/better solutions? Remark: I am developing both the application part and the DLL part. Thanks. antoine

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      antoine_boillier wrote: The DLL responds with a value calculated using a one-way hash function. The application checks the response against its own calculation of the expected hash value. the cracker finds this one-way hash function in the DLL and implements it in his own DLL. it's a tough problem. -c


      Be very, very careful what you put into that head, because you will never, ever get it out. --Thomas Cardinal Wolsey

      Fractals

      1 Reply Last reply
      0
      • A antoine_boillier

        Hi, Does somebody know a secure solution to ensure that the DLL an application is talking to hasn't been replaced with a fake one? I am thinking about implementing a "handshaking" procedure. With this method, the application sends a "challenge" random message to the DLL. The DLL responds with a value calculated using a one-way hash function. The application checks the response against its own calculation of the expected hash value. If the values match, the authentication is acknowledged; otherwise the application is terminated. Do you know other/better solutions? Remark: I am developing both the application part and the DLL part. Thanks. antoine

        S Offline
        S Offline
        Scorp1us
        wrote on last edited by
        #3

        This is usually done by cryptographically signing the dll. This too is not fool-proof.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups