Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
the wrap utility takes a readable, ASCII text file as input and converts it to a file containing byte code. The result is that the DBA, developers or anyone with database access cannot view the source code in any readable format.
The command line options for wrap are:
wrap iname=[file] oname=[file]

The Above is achievable in PL/Sql

Please refer the URL for More Details
http://www.dba-oracle.com/t_wrap_utility.htm


How to achieve it in SQL Server
Posted
Updated 25-Jul-11 21:04pm
v5

If you are talking about encrypting T-SQL code like Stored Procedures and User Defined Functions, you can use WITH ENCRYPTION option while creating them.

SQL
CREATE PROCEDURE Procedure1
(
@Param1 int
)
WITH ENCRYPTION
AS
BEGIN
    ......
END


However, note that doing this is a one way ticket and there is no way to get back the source unless you save the source to a file for your reference. Doing a generate script on the procedure will not yield the source.
 
Share this answer
 
Comments
kin karthik 26-Jul-11 9:24am    
Thanks For you Reply your reply is correct .
But DBA, developers or anyone with database access can have a facility to Decrypt the code.

I need Some Advanced technique like sql Injection or some thing.
if any ideas it would be fine
[no name] 26-Jul-11 15:12pm    
No one can decrypt this (except a determined hacker).
 
Share this answer
 
Comments
kin karthik 26-Jul-11 9:24am    
Thanks For you Reply your reply is correct .
But DBA, developers or anyone with database access can have a facility to Decrypt the code.

I need Some Advanced technique like sql Injection or some thing.
if any ideas it would be fine
Deepak Namdeo 27-Jul-11 1:22am    
karthik
no one can decrypt procedure except some paid services given exclusively.
don't bother about that,don't forget to keep copy of source code you are
encrypting.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900