由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Database encryption 一问
相关主题
decrypt data,求大神提示紧急求助, 关于SQL Server
Database Encryption咋样选一个表中在另一个表中不含有的记录
encryptionpjones, do you know how to setup a encrypted multiprotocol in MSSQL?
SQL Server 2005: How to hash a column?Re: pjones, do you know how to setup a encrypted multiprotocol in MSSQ
怎样解决 Index for NULL valuewhere is password file for mysql
SQL Server query 一问问一个SSRS备份的问题
急问Access Query问题:怎样查询最后一个非空的数值,谢谢有朋友做Data Governance吗?
怎么写个query 把输出变成横排.请帮我看看,什么地方错了?
相关话题的讨论汇总
话题: encryption话题: database话题: encrypt话题: name话题: ssn
进入Database版参与讨论
1 (共1页)
b******u
发帖数: 676
1
我需要把database里面比较sensitive的东西encrypt起来。
在网上找到了一些东西。基本上都是要写两个简单的function,
one for encrypt, one for decrypt.
然后用的时候,假设ud_MyCrypt is the function name for encrypt,
insert就要write something like:
Insert table1(SSN) values (dbo.ud_MyCrypt('123456789',NULL))
Say ud_MyDecrypt is the function name for decrypt,select就要写成:
select dbo.ud_MyDecrypt(SSN,NULL , 'SecurePassword' ) from table1
这意味着我所有和DB连的东西都得从写。那我就惨了。有没有什么方法能使
encryption totally transparent呢?不用改我的existing SQL statements?
c******r
发帖数: 512
2

Use trigger to do this
Alter the table add column that compute the decryption
or define a view.

【在 b******u 的大作中提到】
: 我需要把database里面比较sensitive的东西encrypt起来。
: 在网上找到了一些东西。基本上都是要写两个简单的function,
: one for encrypt, one for decrypt.
: 然后用的时候,假设ud_MyCrypt is the function name for encrypt,
: insert就要write something like:
: Insert table1(SSN) values (dbo.ud_MyCrypt('123456789',NULL))
: Say ud_MyDecrypt is the function name for decrypt,select就要写成:
: select dbo.ud_MyDecrypt(SSN,NULL , 'SecurePassword' ) from table1
: 这意味着我所有和DB连的东西都得从写。那我就惨了。有没有什么方法能使
: encryption totally transparent呢?不用改我的existing SQL statements?

b******u
发帖数: 676
3
Thanks a lot for the answer. It did open a window for me. hehe... I read some
spec/FAQs from those encryption software company's website. They suggest the
same thing.
Now my problem is, my application is there already. I need to somehow just
"plug in" the encryption. Usually those software will create a view on the
table that I want to encrypt. Name the view as my table name, and rename the
table to something else. that's a good idea. However I am not sure how to keep
the key constraints. Any id

【在 c******r 的大作中提到】
:
: Use trigger to do this
: Alter the table add column that compute the decryption
: or define a view.

c******r
发帖数: 512
4

some
keep
You can still keep your key/referential and other constraints on your
table.

【在 b******u 的大作中提到】
: Thanks a lot for the answer. It did open a window for me. hehe... I read some
: spec/FAQs from those encryption software company's website. They suggest the
: same thing.
: Now my problem is, my application is there already. I need to somehow just
: "plug in" the encryption. Usually those software will create a view on the
: table that I want to encrypt. Name the view as my table name, and rename the
: table to something else. that's a good idea. However I am not sure how to keep
: the key constraints. Any id

1 (共1页)
进入Database版参与讨论
相关主题
请帮我看看,什么地方错了?怎样解决 Index for NULL value
Questions on SQLSQL Server query 一问
Re: 在一个database里边,xxx-xx-xxx格式的SSN算作什么数据类型?急问Access Query问题:怎样查询最后一个非空的数值,谢谢
请教三个Key的property,怎么写个query 把输出变成横排.
decrypt data,求大神提示紧急求助, 关于SQL Server
Database Encryption咋样选一个表中在另一个表中不含有的记录
encryptionpjones, do you know how to setup a encrypted multiprotocol in MSSQL?
SQL Server 2005: How to hash a column?Re: pjones, do you know how to setup a encrypted multiprotocol in MSSQ
相关话题的讨论汇总
话题: encryption话题: database话题: encrypt话题: name话题: ssn