Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2006, 10:03 AM
Registered User
 
Join Date: Nov 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Stored Procedure with Encryption

Hello

I have to install a system in our Client
and I need to protect my code
I want to know if somebody have experience with the "store procedure with encriptyon"

Thanking in advance

Gustavo Saturansky
System Manager
CARD MINING
 
Old November 8th, 2006, 10:34 AM
Friend of Wrox
 
Join Date: Oct 2006
Posts: 475
Thanks: 0
Thanked 9 Times in 9 Posts
Default

Not much but I understand that it's very easy to break that built in encryption... I've seen several web sites where they tell how to break it... still, it will keep the honest man honest.

--Jeff Moden
 
Old November 9th, 2006, 09:31 AM
Registered User
 
Join Date: Nov 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Jeff
Thanks for your answer
But i think because of my poor english, i couldn't explain my doubt
The only thing that i want to know


" Is the With Encryption property safe enough ?"

Thanks

Gustavo Saturansky
System Manager
CARD MINING


Quote:
quote:Originally posted by Jeff Moden
 Not much but I understand that it's very easy to break that built in encryption... I've seen several web sites where they tell how to break it... still, it will keep the honest man honest.

--Jeff Moden
 
Old November 9th, 2006, 02:14 PM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Define "safe enough". Here is what BOL says about WITH Encryption:

Indicates that SQL Server will convert the original text of the CREATE PROCEDURE statement to an obfuscated format. The output of the obfuscation is not directly visible in any of the catalog views in SQL Server 2005. Users that have no access to system tables or database files cannot retrieve the obfuscated text. However, the text will be available to privileged users that can either access system tables over the DAC port or directly access database files. Also, users that can attach a debugger to the server process can retrieve the decrypted procedure from memory at runtime. For more information about accessing system metadata, see Metadata Visibility Configuration.

That is as safe as you are going to get.

Scott Klein
Author - Professional SQL Server 2005 XML
http://www.wrox.com/WileyCDA/WroxTit...764597922.html
 
Old November 9th, 2006, 02:23 PM
Registered User
 
Join Date: Nov 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your response





Quote:
quote:Originally posted by SQLScott
 Define "safe enough". Here is what BOL says about WITH Encryption:

Indicates that SQL Server will convert the original text of the CREATE PROCEDURE statement to an obfuscated format. The output of the obfuscation is not directly visible in any of the catalog views in SQL Server 2005. Users that have no access to system tables or database files cannot retrieve the obfuscated text. However, the text will be available to privileged users that can either access system tables over the DAC port or directly access database files. Also, users that can attach a debugger to the server process can retrieve the decrypted procedure from memory at runtime. For more information about accessing system metadata, see Metadata Visibility Configuration.

That is as safe as you are going to get.

Scott Klein
Author - Professional SQL Server 2005 XML
http://www.wrox.com/WileyCDA/WroxTit...764597922.html
Gustavo Saturansky
System Manager
CARD MINING
 
Old November 9th, 2006, 02:58 PM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I hope our responses helped. I think we are just trying to understand what you mean by "safe enough". That all depends on your definition of "safe". If we haven't answered your question satisfactorily, please let us know and we can try again.


Scott Klein
Author - Professional SQL Server 2005 XML
http://www.wrox.com/WileyCDA/WroxTit...764597922.html
 
Old November 9th, 2006, 08:23 PM
Friend of Wrox
 
Join Date: Oct 2006
Posts: 475
Thanks: 0
Thanked 9 Times in 9 Posts
Default

Scott is pretty much on the money...

If "safe enough" means that the client will never be able to see your code in clear text, the answer is "No"... it is not safe enough.

--Jeff Moden
 
Old November 10th, 2006, 08:39 AM
Registered User
 
Join Date: Nov 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Scott

Thank you again
Your answer have been satisfactorily.

Regards






Quote:
quote:Originally posted by SQLScott
 I hope our responses helped. I think we are just trying to understand what you mean by "safe enough". That all depends on your definition of "safe". If we haven't answered your question satisfactorily, please let us know and we can try again.


Scott Klein
Author - Professional SQL Server 2005 XML
http://www.wrox.com/WileyCDA/WroxTit...764597922.html
Gustavo Saturansky
System Manager
CARD MINING





Similar Threads
Thread Thread Starter Forum Replies Last Post
Stored Procedure jezywrap SQL Server ASP 1 January 3rd, 2007 12:29 AM
stored procedure keyvanjan Classic ASP Basics 6 August 1st, 2006 07:42 AM
Help On Stored Procedure desireemm SQL Language 2 October 31st, 2005 07:11 PM
Stored Procedure help flyin SQL Server 2000 4 August 3rd, 2004 07:37 AM
Stored Procedure help flyin SQL Server 2000 6 July 25th, 2004 05:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.