Showing posts with label encryption. Show all posts
Showing posts with label encryption. Show all posts

Sunday, March 25, 2012

Data Encryption: Searching Encrypted Data

Hey there,
I am beginning a new project that will require data to be encrypted and
that data is obviously going to be stored within a Sql 2000 database.
The majority of the data is basically OCR text and will be required to
be searched via a web application via calling a Stored Procedure, with
the rest being Customer Order information. From what I can gather, I
will not be able to store my data encrypted if I want to search it.
Therefore, does anyone have a suggestion on possibly how to go about
this differently, if there even is an option. Anyone have a good
suggested read on how to stored, say credit card information encrypted,
as well as how to search that encrypted data?
Thanks in advance for any suggestions you may have.
XVYou can start by reviewing the encryption section in this
security FAQ. It lists some third party providers that offer
encryption solutions. Some of the sites have white papers on
encryption as well consulting services:
http://www.sqlsecurity.com/DesktopDefault.aspx?tabid=22
-Sue
On 26 Jan 2005 10:31:04 -0800, xanthviper@.xanthviper.com
wrote:

>Hey there,
>I am beginning a new project that will require data to be encrypted and
>that data is obviously going to be stored within a Sql 2000 database.
>The majority of the data is basically OCR text and will be required to
>be searched via a web application via calling a Stored Procedure, with
>the rest being Customer Order information. From what I can gather, I
>will not be able to store my data encrypted if I want to search it.
>Therefore, does anyone have a suggestion on possibly how to go about
>this differently, if there even is an option. Anyone have a good
>suggested read on how to stored, say credit card information encrypted,
>as well as how to search that encrypted data?
>Thanks in advance for any suggestions you may have.
>XV|||Thank you Sue. I appreciate your input.

data encryption standards

Is there any organization with standards for SQL Server database encryption
software? Does anyone have any warnings/advice about evaluating 3rd party en
cryption products?Rule #1: Alway evaluate on a test box.
Other than that, I don't believe there is an organization with standards
specifically for SQL Server. You would most likely want to check out
www.nist.gov for general encryption standards. You will probably also want
to
get confirmation from the vendors you interview what standards their product
s
adhere to.
Here are several of the third party product usually mentioned:
Whamware.Crypt from www.whamware.com
ActiveCrypt from www.activecrypt.com
dbEncrypt from www.appsecinc.com
Enjoy!
Tom
"Dan P."
> Is there any organization with standards for SQL Server database encryption[/color
]
software? Does anyone have any warnings/advice about evaluating 3rd party
encryption products?

Data Encryption In SQL2005

I am a developer and need to store some confidential information in my DB. I
came to know about SQL server 2005's encryption features recently.
I want to encrypt data in such a way that even DBA's who created the DB's
(owners) should not be able to decrpt the data.
Is it possibel in SQL server 2005 ? if so, can anyone breifly outline the
steps or point to ncessary location.
thanks. KumarHi
Have a look at Laurentiu Cristofor's blog
http://blogs.msdn.com/lcris/default.aspx
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Kumar" <Kumar@.discussions.microsoft.com> wrote in message
news:89F62EDD-1D58-4781-96CE-5FC5E6E82C8F@.microsoft.com...
>I am a developer and need to store some confidential information in my DB.
>I
> came to know about SQL server 2005's encryption features recently.
> I want to encrypt data in such a way that even DBA's who created the DB's
> (owners) should not be able to decrpt the data.
> Is it possibel in SQL server 2005 ? if so, can anyone breifly outline the
> steps or point to ncessary location.
> thanks. Kumar
>|||Mike,
Thanks. Will try it. Do I need to have any special privileges to create all
these keys ?
thanks Kumar
"Mike Epprecht (SQL MVP)" wrote:

> Hi
> Have a look at Laurentiu Cristofor's blog
> http://blogs.msdn.com/lcris/default.aspx
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Kumar" <Kumar@.discussions.microsoft.com> wrote in message
> news:89F62EDD-1D58-4781-96CE-5FC5E6E82C8F@.microsoft.com...
>
>|||Yes, you need to have been granted special permissions for creating keys.
For details, look in Books Online; the permission requirements for DDL are
listed there.
Thanks
Laurentiu Cristofor [MSFT]
Software Design Engineer
SQL Server Engine
http://blogs.msdn.com/lcris/
This posting is provided "AS IS" with no warranties, and confers no rights.
"Kumar" <Kumar@.discussions.microsoft.com> wrote in message
news:4DDBF38B-32FA-4284-A273-225F1D0B79A0@.microsoft.com...[vbcol=seagreen]
> Mike,
> Thanks. Will try it. Do I need to have any special privileges to create
> all
> these keys ?
> thanks Kumar
> "Mike Epprecht (SQL MVP)" wrote:
>|||Guys, thank you very much.
"Laurentiu Cristofor [MSFT]" wrote:

> Yes, you need to have been granted special permissions for creating keys.
> For details, look in Books Online; the permission requirements for DDL are
> listed there.
> Thanks
> --
> Laurentiu Cristofor [MSFT]
> Software Design Engineer
> SQL Server Engine
> http://blogs.msdn.com/lcris/
> This posting is provided "AS IS" with no warranties, and confers no rights
.
> "Kumar" <Kumar@.discussions.microsoft.com> wrote in message
> news:4DDBF38B-32FA-4284-A273-225F1D0B79A0@.microsoft.com...
>
>sql

data encryption in SQL Server 2005 - protect from SQL Admnis

I need to store some sensitive data in SQL 2005.
Stored procedures will encrypt & decrypt the data. The client app is written
in .NEt using a specific user (belonging to a specific - custom role).
However, inspite of the above, the local Admin can always view the code in
the decription stored procedure & decrypt & hence view the data.
How can i prevent the administrator (everyone) except for the application
from being able to view the data.
Is it possible to remove access to a stored procedure even from an
administrator & give access to a special user (the password of which is know
only by the application)'
Then again the owner of the above role will have access to the stored
procedures!!This is a good backgrounder on the topic:
http://blogs.msdn.com/lcris/archive/2006/11/30/who-needs-encryption.aspx
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Don" <Don@.discussions.microsoft.com> wrote in message
news:A25E337B-AA5C-456B-95AD-E4D2F36D4B0A@.microsoft.com...
>I need to store some sensitive data in SQL 2005.
> Stored procedures will encrypt & decrypt the data. The client app is written
> in .NEt using a specific user (belonging to a specific - custom role).
> However, inspite of the above, the local Admin can always view the code in
> the decription stored procedure & decrypt & hence view the data.
> How can i prevent the administrator (everyone) except for the application
> from being able to view the data.
> Is it possible to remove access to a stored procedure even from an
> administrator & give access to a special user (the password of which is know
> only by the application)'
> Then again the owner of the above role will have access to the stored
> procedures!!

data encryption in SQL Server 2005 - protect from SQL Admnis

I need to store some sensitive data in SQL 2005.
Stored procedures will encrypt & decrypt the data. The client app is written
in .NEt using a specific user (belonging to a specific - custom role).
However, inspite of the above, the local Admin can always view the code in
the decription stored procedure & decrypt & hence view the data.
How can i prevent the administrator (everyone) except for the application
from being able to view the data.
Is it possible to remove access to a stored procedure even from an
administrator & give access to a special user (the password of which is know
only by the application)'
Then again the owner of the above role will have access to the stored
procedures!!This is a good backgrounder on the topic:
http://blogs.msdn.com/lcris/archive...encryption.aspx
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Don" <Don@.discussions.microsoft.com> wrote in message
news:A25E337B-AA5C-456B-95AD-E4D2F36D4B0A@.microsoft.com...
>I need to store some sensitive data in SQL 2005.
> Stored procedures will encrypt & decrypt the data. The client app is writt
en
> in .NEt using a specific user (belonging to a specific - custom role).
> However, inspite of the above, the local Admin can always view the code in
> the decription stored procedure & decrypt & hence view the data.
> How can i prevent the administrator (everyone) except for the application
> from being able to view the data.
> Is it possible to remove access to a stored procedure even from an
> administrator & give access to a special user (the password of which is kn
ow
> only by the application)'
> Then again the owner of the above role will have access to the stored
> procedures!!

Data encryption in SQL Server 2000

I know there is no native encryption in SQL2K, but what 3rd party encryption tools would other forum members recommend from experience? I am required to encrypt data for PCI compliance.
Thanks
LempsterSQL Server Magazine (http://www.sqlmag.com/articles/index.cfm?articleid=44550&) gives you a few good hints, even if you don't subscribe. Apart from that, I do not know what kind of requirements you have, but keep in mind that NTFS supports encryption of files, which is transparent to the applications, so you can encrypt the data files so that only the SQL Server Service Account can read the file. Hope this was of some help.

Data encryption for results of query using ADO

Hi,
I'm using ADO to connect to a SQL Server.
I want to execute a query which reads sensistive information and ensure that
the results of the query cannot be sniffed on the network
Can I enable encryption for a specific connection to the SQL Server without
forcing either the client machine or sql server to enable
full fledged encryption. I have only one query which returns sensitive
information, hence I do not wish to enable encryption for the all sql server
connections/
using certificates via 'Force Protocol Encryption'
Thanks,
Alwyn
Alwyn,
Take a look at this site: http://www.activecrypt.com/index.htm. You might
want to test the xp_crypt procedures.
Dejan Sarka, SQL Server MVP
Associate Mentor
Solid Quality Learning
More than just Training
www.SolidQualityLearning.com
"Alwyn Pereira" <alwynpereira@.hotmail.com> wrote in message
news:ucXSc9sqEHA.3748@.TK2MSFTNGP09.phx.gbl...
> Hi,
> I'm using ADO to connect to a SQL Server.
> I want to execute a query which reads sensistive information and ensure
that
> the results of the query cannot be sniffed on the network
> Can I enable encryption for a specific connection to the SQL Server
without
> forcing either the client machine or sql server to enable
> full fledged encryption. I have only one query which returns sensitive
> information, hence I do not wish to enable encryption for the all sql
server
> connections/
> using certificates via 'Force Protocol Encryption'
> Thanks,
> Alwyn
>

Data encryption for results of query using ADO

Hi,
I'm using ADO to connect to a SQL Server.
I want to execute a query which reads sensistive information and ensure that
the results of the query cannot be sniffed on the network
Can I enable encryption for a specific connection to the SQL Server without
forcing either the client machine or sql server to enable
full fledged encryption. I have only one query which returns sensitive
information, hence I do not wish to enable encryption for the all sql server
connections/
using certificates via 'Force Protocol Encryption'
Thanks,
Alwyn
There isn't anything built-in to support this. I'm afraid you're going
to have to roll your own.
--Mary
On Mon, 4 Oct 2004 19:11:49 +0530, "Alwyn Pereira"
<alwynpereira@.hotmail.com> wrote:

>Hi,
>I'm using ADO to connect to a SQL Server.
>I want to execute a query which reads sensistive information and ensure that
>the results of the query cannot be sniffed on the network
>Can I enable encryption for a specific connection to the SQL Server without
>forcing either the client machine or sql server to enable
>full fledged encryption. I have only one query which returns sensitive
>information, hence I do not wish to enable encryption for the all sql server
>connections/
>using certificates via 'Force Protocol Encryption'
>Thanks,
>Alwyn
>
sql

Data encryption and keys

Hi,
I would like to encrypt data in my database. I want encrypted column value to be viewable only for certain group of users. Users that has access to my database doesn't meant they can access to my encrypted data.

Currently, I am using the following "approach" as my key management.

create master key encryption by password= 'MasterKeyPass'

CREATE ASYMMETRIC KEY MyAsymmKey AUTHORIZATION MyUser
WITH ALGORITHM = RSA_1024
ENCRYPTION BY PASSWORD ='MyAsymmPass'

CREATE SYMMETRIC KEY MySymmKey WITH ALGORITHM = DES
ENCRYPTION BY ASYMMETRIC KEY MyAsymmKey

My data will be encrypted using Symmetric key MySymmKey.

User who want to access my data must have MasterKey and MyAsymmKey password.
Is it OK? Any better way?

Thank you

As long as the user you are trying to protect against is not a dbo or sysadmin, you can also use permissions (i.e. "GRANT CONTROL ON ASYMMETRIC KEY :: MyAsymmKey TO user1") to restrict access rather than through passwords. The advantage is the user then doesn't have to depend on memorizing a password and you don't have to pass any password values in which is safer from a security standpoint.

Sung

|||Fyi, Books online links up a section about BACKUP and RESTORING encryption keys http://msdn2.microsoft.com/en-US/library/ms157275.aspx link.

Data Encryption

Hi,

We need to set up a data export process from a SQL DB.

The output (be it XML, Text Files or whatever) needs to be encrypted before it is FTPd somewhere.

Is there support for encrption in SSIS? How / where in the package designer would you achive this?

Thanks in advance.

Martin

There is no built in support for encryption of data. It would be an interesting custom task though if you fancy having a go.

Otherwise, request this for a future enhancement at http://connect.microsoft.com

-Jamie

|||Thanks, shame I was hoping to use it as a lever to kick the upgrade process off from SQL2000.|||

Actually come to think of it - you could leverage .Net's encyption routines quite easily using the script component.

Try doing that!

-Jamie

|||I've been working on an encryption transform actually. We're waiting to get everything in place from corp to release it. If you would like, send an e-mail to jason.gerard at idea.com and I'll let you know when it's ready.

In the meantime, you could use the .NET ecryption API's from inside a Script Transform.

Data Encryption

Is there anyone out there practicing data encryption in
their database ? Column data or table data (Not Stored
P.). If so, how can I apply it to my database too ?
Management wants even the data in the tables encrypted to
the DBA.
If there are any third party utilities out there, can
someone direct me to them ?.
T.I.A
You can find some third party tools listed in the encryption
section of this FAQ:
http://www.sqlsecurity.com/DesktopDefault.aspx?tabid=22
-Sue
On Fri, 11 Feb 2005 08:34:10 -0800, "Chris"
<anonymous@.discussions.microsoft.com> wrote:

>Is there anyone out there practicing data encryption in
>their database ? Column data or table data (Not Stored
>P.). If so, how can I apply it to my database too ?
>Management wants even the data in the tables encrypted to
>the DBA.
>If there are any third party utilities out there, can
>someone direct me to them ?.
>T.I.A
|||In message <210201c51057$83d37640$a601280a@.phx.gbl>, Chris
<anonymous@.discussions.microsoft.com> writes
>Is there anyone out there practicing data encryption in
>their database ? Column data or table data (Not Stored
>P.). If so, how can I apply it to my database too ?
>Management wants even the data in the tables encrypted to
>the DBA.
>If there are any third party utilities out there, can
>someone direct me to them ?.
>T.I.A
Personally, I have embedded AES within one of our Utility DLL's and when
I need to protect columns (ie: passwords or pin numbers - anything
really) it is called prior to updating SQL Server (ie: via INSERT or
UPDATE).
Secondly, it is very rare that this data needs decrypting (or else
what's the point) so only ever compare encrypted values in SELECT's.
There are some third party utilities that can help with this issue (try
Google) but from experience I would tell Management that you could
provide encryption to individual columns but its not practical to
implement this for all data (after all there is a big overhead,
specially on large databases).
The best protection for the database from users is for the DBA to set it
up right in the first place by using SQL Logins to restrict access to
only the tables, views and stored procedures they require. This then
means of course that the applications accessing the data use the right
credentials for the each operation, feature and user (ie: by design).
As for protecting the data from DBA's I would suggest this is done by
employing the right people in the first place; adding various clauses to
employment contracts; signing NDA's; and of course threatening with very
serious law suits and of course don't forget the base ball bats <g>.
The ultimate protection for the database from everyone (specially those
in Management) would be to turn the Computer OFF; Lock it in a Nuclear
bunker; destroy the key and then burn the maps to its location. <g>
Alternatively, don't store the data in the first place. <bg>
I think Yukon might have some new features in this area as well, however
someone else will need to answer that one. Besides, Yukon is not hear
yet !
Andrew D. Newbould E-Mail: newsgroups@.NOSPAMzadsoft.com
ZAD Software Systems Web : www.zadsoft.com

Data encryption

Hi,
Does anyone use the database encryption tools before? Any suggestion? I
want to encrypt my data inside the table in the sql server.
Thank you very much!
Best regards,
Florence
Hi
If you are using .Net then you could use the inbuilt classes, if not then
you can write your own with the cryptoapi, otherwise check out
http://www.sqlsecurity.com/DesktopDefault.aspx?tabid=30
John
"Florence Lee" <florencelee@.visualsolutions.com.my> wrote in message
news:%23nSKBSA5EHA.3124@.TK2MSFTNGP11.phx.gbl...
> Hi,
> Does anyone use the database encryption tools before? Any suggestion? I
> want to encrypt my data inside the table in the sql server.
> --
> Thank you very much!
> Best regards,
> Florence
>
|||Florence,
To encrypt data in tables, for SQL Server 2000 you'll need a third party
tool. There are a number out there, but research carefully.
SQL Server 2005 will provide column-level encryption with key management.
Ron
Ron Talmage
SQL Server MVP
"Florence Lee" <florencelee@.visualsolutions.com.my> wrote in message
news:%23nSKBSA5EHA.3124@.TK2MSFTNGP11.phx.gbl...
> Hi,
> Does anyone use the database encryption tools before? Any suggestion?
I
> want to encrypt my data inside the table in the sql server.
> --
> Thank you very much!
> Best regards,
> Florence
>

Data Encryption

Can MS SQL 2005 encryp data?
How to do that?
Hi
Yes SQL 2005 does have methods to encrypt data using functions such as
EncryptByKey, EncryptByPassPhrase, EncryptByAsmKey or EncryptByCert. there
are also DDL to create certificates or keys to use in these functions. For an
overview see
http://www.microsoft.com/technet/itshowcase/content/sqldatsec.mspx
Example at http://msdn2.microsoft.com/en-us/library/ms179331.aspx
More technical stuff at
http://blogs.msdn.com/lcris/archive/category/10357.aspx
John
"TBoon" wrote:

> Can MS SQL 2005 encryp data?
> How to do that?
sql

Data encryption

Hi,
Does anyone use the database encryption tools before? Any suggestion? I
want to encrypt my data inside the table in the sql server.
--
Thank you very much!
Best regards,
FlorenceHi
If you are using .Net then you could use the inbuilt classes, if not then
you can write your own with the cryptoapi, otherwise check out
http://www.sqlsecurity.com/DesktopDefault.aspx?tabid=30
John
"Florence Lee" <florencelee@.visualsolutions.com.my> wrote in message
news:%23nSKBSA5EHA.3124@.TK2MSFTNGP11.phx.gbl...
> Hi,
> Does anyone use the database encryption tools before? Any suggestion? I
> want to encrypt my data inside the table in the sql server.
> --
> Thank you very much!
> Best regards,
> Florence
>|||Florence,
To encrypt data in tables, for SQL Server 2000 you'll need a third party
tool. There are a number out there, but research carefully.
SQL Server 2005 will provide column-level encryption with key management.
Ron
--
Ron Talmage
SQL Server MVP
"Florence Lee" <florencelee@.visualsolutions.com.my> wrote in message
news:%23nSKBSA5EHA.3124@.TK2MSFTNGP11.phx.gbl...
> Hi,
> Does anyone use the database encryption tools before? Any suggestion?
I
> want to encrypt my data inside the table in the sql server.
> --
> Thank you very much!
> Best regards,
> Florence
>

Data Encryption

Is there anyone out there practicing data encryption in
their database ? Column data or table data (Not Stored
P.). If so, how can I apply it to my database too ?
Management wants even the data in the tables encrypted to
the DBA.
If there are any third party utilities out there, can
someone direct me to them '.
T.I.AYou can find some third party tools listed in the encryption
section of this FAQ:
http://www.sqlsecurity.com/DesktopDefault.aspx?tabid=22
-Sue
On Fri, 11 Feb 2005 08:34:10 -0800, "Chris"
<anonymous@.discussions.microsoft.com> wrote:
>Is there anyone out there practicing data encryption in
>their database ? Column data or table data (Not Stored
>P.). If so, how can I apply it to my database too ?
>Management wants even the data in the tables encrypted to
>the DBA.
>If there are any third party utilities out there, can
>someone direct me to them '.
>T.I.A|||In message <210201c51057$83d37640$a601280a@.phx.gbl>, Chris
<anonymous@.discussions.microsoft.com> writes
>Is there anyone out there practicing data encryption in
>their database ? Column data or table data (Not Stored
>P.). If so, how can I apply it to my database too ?
>Management wants even the data in the tables encrypted to
>the DBA.
>If there are any third party utilities out there, can
>someone direct me to them '.
>T.I.A
Personally, I have embedded AES within one of our Utility DLL's and when
I need to protect columns (ie: passwords or pin numbers - anything
really) it is called prior to updating SQL Server (ie: via INSERT or
UPDATE).
Secondly, it is very rare that this data needs decrypting (or else
what's the point) so only ever compare encrypted values in SELECT's.
There are some third party utilities that can help with this issue (try
Google) but from experience I would tell Management that you could
provide encryption to individual columns but its not practical to
implement this for all data (after all there is a big overhead,
specially on large databases).
The best protection for the database from users is for the DBA to set it
up right in the first place by using SQL Logins to restrict access to
only the tables, views and stored procedures they require. This then
means of course that the applications accessing the data use the right
credentials for the each operation, feature and user (ie: by design).
As for protecting the data from DBA's I would suggest this is done by
employing the right people in the first place; adding various clauses to
employment contracts; signing NDA's; and of course threatening with very
serious law suits and of course don't forget the base ball bats <g>.
The ultimate protection for the database from everyone (specially those
in Management) would be to turn the Computer OFF; Lock it in a Nuclear
bunker; destroy the key and then burn the maps to its location. <g>
Alternatively, don't store the data in the first place. <bg>
I think Yukon might have some new features in this area as well, however
someone else will need to answer that one. Besides, Yukon is not hear
yet !
--
Andrew D. Newbould E-Mail: newsgroups@.NOSPAMzadsoft.com
ZAD Software Systems Web : www.zadsoft.com

Data Encryption

Can MS SQL 2005 encryp data?
How to do that?Hi
Yes SQL 2005 does have methods to encrypt data using functions such as
EncryptByKey, EncryptByPassPhrase, EncryptByAsmKey or EncryptByCert. there
are also DDL to create certificates or keys to use in these functions. For an
overview see
http://www.microsoft.com/technet/itshowcase/content/sqldatsec.mspx
Example at http://msdn2.microsoft.com/en-us/library/ms179331.aspx
More technical stuff at
http://blogs.msdn.com/lcris/archive/category/10357.aspx
John
"TBoon" wrote:
> Can MS SQL 2005 encryp data?
> How to do that?

Data Encryption

HI There,
I was wondering how I encrypt the data I have in my SQL sevrer database? is
there some built in tool that will do this? if there is can someone provide
me with a code snippet to get me started?
SeanSean,
Generally you will be required to write extended stored procedures that
calls on CryptoAPIs for this, as SQL Server encrypts at the packet level
when you setup your network libraries with encryption turn on either using
SSL or multiprotocol. I don't know of samples that I can supply you with
but I believe companies such as Protegrity has some sort of solution, you
might like visiting their web site and search on the internet for some
others. I'm not sure if the next release of SQL Server, Yukon, will have
this built in, but because it can call into the Cryptography namespace in
the CLR, it may make your life a little easier. Another solution is to use
Windows encrypted file system (EFS) and encrypt your entire database that
way although this might not be as granular as you want it to be.
I hope this helps.
Regards
James|||Have a look at:
Whamware.Crypt - www.whamware.com
dbEncrypt - www.appsecinc.com
Encryptionizer for SQL Server - www.netlib.com
Tom
"sean" wrote:
> HI There,
> I was wondering how I encrypt the data I have in my SQL sevrer database? i
s
> there some built in tool that will do this? if there is can someone provid
e
> me with a code snippet to get me started?
> ...|||I can also recommend XP_Crypt from www.activecrypt.com cheap, fast and very
easy to use, they also sell a great activeX component so you can easily encr
ypt in your front end app and decrypt in the database etc..
nntp://news.microsoft.com/microsoft.public.sqlserver.security/ >
Have a look at:
Whamware.Crypt - www.whamware.com
dbEncrypt - www.appsecinc.com
Encryptionizer for SQL Server - www.netlib.com
Tom
"sean" wrote:
> HI There,
> I was wondering how I encrypt the data I have in my SQL sevrer database? i
s
> there some built in tool that will do this? if there is can someone provid
e
> me with a code snippet to get me started?
> ...
[microsoft.public.sqlserver.security > ]

data encryption

Hello there
I have database with some details that i don't no one can read it. including
programmers who have access directly to sql server.
How can i do that ?Roy, shalom
I assume , you are using SQL Server 2000 , right?
Take a look at this article
http://vyaskn.tripod.com/ row_level...as
es.htm
"Roy Goldhammer" <roy@.hotmail.com> wrote in message
news:u3IMJblMHHA.2456@.TK2MSFTNGP06.phx.gbl...
> Hello there
> I have database with some details that i don't no one can read it.
> including programmers who have access directly to sql server.
> How can i do that ?
>|||what's the datatypes of that columns? if it looks like the binary datea,
then try to convert it as varchar(8000) column
SELECt cast(urVarbinaryColumn as varchar(8000) )
from urTable
"Roy Goldhammer" <roy@.hotmail.com> wrote in message
news:u3IMJblMHHA.2456@.TK2MSFTNGP06.phx.gbl...
> Hello there
> I have database with some details that i don't no one can read it.
> including programmers who have access directly to sql server.
> How can i do that ?
>|||"Roy Goldhammer" <roy@.hotmail.com> wrote in message
news:u3IMJblMHHA.2456@.TK2MSFTNGP06.phx.gbl...
> Hello there
> I have database with some details that i don't no one can read it.
> including programmers who have access directly to sql server.
> How can i do that ?
In addition, if SQL 2005, look here:
http://www.sqlservercentral.com/col...oolkitpart1.aspsql

data encryption

Ideai have to encrypt my data in sql2005 database using assymetric key encryption which i have done properly.But i have a doubt that while writing stored procedure i have to provide key information in it , that will be visible to everyone then whats the use of taht encryption. Can anyone tell me how can i write stored procedure without providing key information in it.

Divya

Well, you can have SQL Server manage the keys for you, then you never have to expose them to client applications.

But I assume from your question that you are using passwords (passphrases) to protect the asymmetric keys? If so, is there a reason you are doing that? You could instead protect the key using the database master key and then not have to worry about providing the key in your stored procedure.

Don

|||

A very good tutorial for similar situation is

http://aspnet.4guysfromrolla.com/articles/022807-1.aspx

|||

It all depends on who and what you are trying to protect from.

By the web server passing the key, the loss of just the physical database server itself would be meaningless. You couldn't decrypt the data on it since they does not exist on that machine. It also can simplify a number of other issues as well since the key is stored with the application that is accessing the data. And it does make for a stronger link between application and data. if you were store the key on the database (and not pass it), then you most likely wouldn't gain very much. The stored procedure could look it up, but then you are subject to the problem that if the physical machine is compomised (Stolen), the data can be decrypted. It also causes a problem because then you have to make a second security layer so that the stored procedure is only then able to be executed by connections it trusts. And if you write that layer, what is the point of a stored procedure that encrypts data since you are now dependant on the security of the connection? If you can trust the connection, the just put permissions on your tables and you've got the same level of security. If somehow the stored procedure is compromised, again, the encryption is useless. It's encrypted, but anyone can decrypt it just by asking, so what is the point in that?

Now, that's not to say that the key being stored/sent from the application doesn't have it's own set of problems, but there is a lot more to encryption and security that must be thought through. And your security scheme must reflect what types of attacks you want to protect yourself from. All-in-all, having the application send the key is more secure in most cases. Just make sure your connection is encrypted as well.

|||

hello don,

i tried d solution suggested by u by creating the database master key, but i am not able to take backup of this key in ntfs directory as it involves editing registry information. Can u suggest me any feasible solution for it.

Thanks

Divya

|||Hello don i tried this solution from this linkhttp://www.sqlservercentral.com/columnists/mcoles/sql2005symmetricencryption.asp and trying to encrypt and decrypt using database master key , creating certificate without password but here i am not able to decrypt the column with this method, can u plz help me on this.|||

Why don't you post the code you're using at this point? That will make it easier to see what you're trying to do.

And is a certificate the best type of encryption to use? Why did you select that? (I don't mean to imply there is anything wrong with that choice. I just want to understand what you are trying to do.)

Don

|||

thanx don, earlier i was trying the encryption using password. But when i tried using master key it worked fine.

thanx

Data Encryption

Can MS SQL 2005 encryp data?
How to do that?Hi
Yes SQL 2005 does have methods to encrypt data using functions such as
EncryptByKey, EncryptByPassPhrase, EncryptByAsmKey or EncryptByCert. there
are also DDL to create certificates or keys to use in these functions. For a
n
overview see
http://www.microsoft.com/technet/it.../sqldatsec.mspx
Example at http://msdn2.microsoft.com/en-us/library/ms179331.aspx
More technical stuff at
http://blogs.msdn.com/lcris/archive/category/10357.aspx
John
"TBoon" wrote:

> Can MS SQL 2005 encryp data?
> How to do that?