SQL Server 2008 透明加密 TDE 相对于加密数据库备份有哪些优势?

发布于 2024-10-03 02:14:23 字数 183 浏览 0 评论 0原文

SQL Server2008+ TDE(透明数据加密)相对于仅加密数据库备份文件(使用密码)有哪些优势?

更新:
抱歉 - 从这个问题中删除了 Oracle(SQL Server TDE 适用于整个数据库,加密数据存储在数据库中)。
尽管有很多 3d 方工具,但使用 C# 在没有 3d 方工具的情况下组织加密并不困难。

What are advantages of SQL Server2008+ TDE ( Transparent Data Encryption) over encrypting just database backup file (with a password)?

Update:
I am sorry - removed Oracle from this question (SQL Server TDE is for the whole database and encrypted data is stored in database).
Encrypting is not difficult to organize using C# without 3d-party tools, though there are plenty of 3d party tools.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

故事灯 2024-10-10 02:14:23

我从未使用过这两个功能,但粗略地回顾一下 2008 年联机丛书文档可以清楚地看出,BACKUP DATABASE 命令的 PASSWORD 选项(我猜这就是您的意思?)不会加密任何内容:

由此提供的保护
密码很弱......[它]不
防止读取备份数据
通过其他方式或更换
密码

显然你根本不应该使用它:

此功能将在
Microsoft SQL Server 的下一个版本

因此,无论您的安全要求如何,PASSWORD 都不太可能有用。 TDE 是否有用取决于您试图降低的风险,例如,它会加密磁盘上的数据,但不会在网络传输期间加密数据。如果您确实实施了某种形式的加密,请确保您针对各种情况制定了非常周密的计划和测试的备份/恢复过程。

I've never used either feature, but a cursory review of the 2008 Books Online documentation makes it clear that the PASSWORD option for the BACKUP DATABASE command (I'm guessing that's what you meant?) doesn't encrypt anything:

The protection provided by this
password is weak ... [it] does not
prevent the reading of the backup data
by other means or the replacement of
the password

And apparently you shouldn't use it at all anyway:

This feature will be removed in the
next version of Microsoft SQL Server

So whatever your security requirements, PASSWORD is unlikely to be useful. Whether or not TDE is useful depends on the risk you're trying to mitigate, e.g. it encrypts data on disk but not during transmission over the network. If you do implement some form of encryption, make sure you have extremely well planned and tested backup/restore procedures for a range of scenarios.

不必了 2024-10-10 02:14:23

SQL Server 中没有功能可以仅加密备份而不加密数据库。您需要使用第三方软件来做到这一点。 TDE 对数据库和备份进行加密。

There is no feature in SQL Server to encrypt just the backups without encrypting the database. You need to use third party software to do that. TDE encrypts both database and backups.

我做我的改变 2024-10-10 02:14:23

TDE 的优点:

  1. 仅加密备份文件显然仅保护备份文件,而不是实际的数据文件。如果您错过了对备份进行加密,那么它就不受保护。
  2. TDE 仅加密/保护您需要的表/列。对于大型备份集,加密整个备份可能会非常慢。

TDE的缺点:

  1. 加密数据的插入/更新速度较慢。
  2. 某些功能无法使用与 TDE 结合使用。

这里是 TDE 的精彩概述。

Advantages of TDE:

  1. Encrypting the backup file only obviously protects only the backup files, not the actual datafiles. If you miss encrypting a backup, it's unprotected.
  2. TDE encrypts/protects only the table/columns you need. Encrypting the entire backup can be very slow for large backup sets.

Disadvantages of TDE:

  1. Inserts/updates of encrypted data are slower.
  2. There are certain features that cannot be used in conjunction with TDE.

Here is a nice overview of TDE.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文