By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,575 Members | 1,948 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,575 IT Pros & Developers. It's quick & easy.

Protecting .net dll's in Sql Server

P: 24
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.
Jan 24 '09 #1
Share this Question
Share on Google+
3 Replies

Expert 2.5K+
P: 2,878
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
Jan 25 '09 #2

P: 24
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 :

Expand|Select|Wrap|Line Numbers
  1. select * from [table] where password = 'ckmbniwyr872tasdbcu34'
but I am looking for code like this

Expand|Select|Wrap|Line Numbers
  1. select * from [table] where dbo.decodeMethod.contain(firstname,'lwjdf3982acxkjh') = true
thank you.
Jan 25 '09 #3

Expert 2.5K+
P: 2,878
I think that would be a .Net question. Have you tried posting this question in .Net forum?

-- CK
Jan 26 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.