加密在SQL Server 2008中的密码列 [英] Encrypt the password column in SQL Server 2008

查看:121
本文介绍了加密在SQL Server 2008中的密码列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何至2008年我读过的文章,但我仍然不知道如何... ...有一个更容易理解的教程?谢谢!

I'm wondering how to encrypt my password column in SQL Server 2008. I've read this article, but I still have no idea how... is there an easier to understand tutorial? Thanks!

推荐答案

通常的做法是存储密码的哈希值。这样的:

The usual practice is to store a hash of the password. Like:

HASHBYTES('SHA1', convert(varbinary(32), @password))

通过哈希,你可以验证,如果密码匹配,但你不知道密码本身。因此,即使黑客获得了对数据库的完全访问权限,他仍然不知道密码。

With a hash, you can verify if the password matches, but you don't know the password itself. So even if a hacker gains complete access to your database, he still does not know the passwords.

有很多教程在网络上

这篇关于加密在SQL Server 2008中的密码列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆