Protecting .net dll's in Sql Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mironline
    New Member
    • May 2008
    • 24

    Protecting .net dll's in Sql Server

    dear friends

    optimistically I'll suicide this weekend or my eyes going blind with sql exception's RED color;

    my problem is :
    I want to encrypt some of my columns in database and use "decryption.dll" to decrypt them.
    the important point is I have to obfuscate the "hash key" string;

    my problemS:
    1.the CLR dose not support obfuscated dlls;

    2.I tried to use assembly class to open decryption.dll and invoke those methods in other class library , but assembly loading is not permitted by CLR

    3.I tried to use ObjectHandle class to Load the decryption.dll but I found the strange security permission exception , and "Larry Page" did not help me with his website.

    4.I tried to add new class library and add reference to "decryption.dll" but the redline appears like : "which is not present in the current database ....."


    Now , Please just help me to find a solution to Protect My "hash key".

    thank you.
    Mironline
    Last edited by Atli; Jan 24 '09, 10:06 PM. Reason: Moved from the MySQL forum to the Microsoft SQL Server forum.
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    Would this work? You can use it and create a function. Let the key be inside your function and just return T or F if it's properly decrypted. You can ENCRYPT the code by using the WITH ENCRYPTION during the creation of your function.

    Just an option....

    -- CK

    Comment

    • mironline
      New Member
      • May 2008
      • 24

      #3
      dear ck9663
      thank you for your replay,

      my application will install on client servers.
      your solution just support "IsEqual" method , and I can do it in application like this :

      Code:
      select * from [table] where password [B]=[/B] 'ckmbniwyr872tasdbcu34'
      but I am looking for code like this

      Code:
      select * from [table] where dbo.decodeMethod.contain(firstname,'lwjdf3982acxkjh') = true
      thank you.
      mironline

      Comment

      • ck9663
        Recognized Expert Specialist
        • Jun 2007
        • 2878

        #4
        I think that would be a .Net question. Have you tried posting this question in .Net forum?

        -- CK

        Comment

        Working...